LCOV - code coverage report
Current view: top level - usecase/i18n - reload_interactor.go Coverage Total Hit
Test: coverage.lcov Lines: 0.0 % 6 0
Test Date: 2026-04-14 06:42:22 Functions: - 0 0

            Line data    Source code
       1              : // Package i18n は i18n(多言語化)関連のユースケースを提供します。
       2              : package i18n
       3              : 
       4              : import "context"
       5              : 
       6              : // Reload は永続層(DictionaryRepository)から全ロケール辞書を再取得し、
       7              : // CacheStore へ SwapAll して翻訳キャッシュを更新します。
       8            0 : func (uc *Interactor) Reload(ctx context.Context) error {
       9            0 :         all, err := uc.repo.LoadAll()
      10            0 :         if err != nil {
      11            0 :                 return err
      12            0 :         }
      13            0 :         return uc.cache.SwapAll(all)
      14              : }
        

Generated by: LCOV version 2.3.1-1