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

            Line data    Source code
       1              : package education
       2              : 
       3              : import "context"
       4              : 
       5              : // HasUserEducation は 認証済みユーザーの学歴の有無を返します
       6              : func (uc *Interactor) HasUserEducation(
       7              :         ctx context.Context,
       8              :         in HasEducationInput,
       9            0 : ) (HasEducationOutput, error) {
      10            0 :         if in.UserID == 0 {
      11            0 :                 return HasEducationOutput{}, errUnauthorized()
      12            0 :         }
      13              : 
      14            0 :         var exists bool
      15            0 :         if err := uc.tx.Do(ctx, func(txCtx context.Context) error {
      16            0 :                 var err error
      17            0 :                 exists, err = uc.ueRepo.HasAnyEducation(txCtx, in.UserID)
      18            0 :                 return err
      19            0 :         }); err != nil {
      20            0 :                 return HasEducationOutput{}, err
      21            0 :         }
      22            0 :         return assembleHasUserEducation(exists), nil
      23              : }
        

Generated by: LCOV version 2.3.1-1