This check has been archived and is scheduled for deletion.
Learn more about checks retention
GitHub Actions / Flutter Test Report
succeeded
Jun 17, 2023 in 1s
Flutter Test Report ✅
✅ test-report.log
61 tests were completed in 66s with 61 passed, 0 failed and 0 skipped.
✅ test/core/http/api_client/api_client_test.dart
ApiClient test get
✅ 正常系
ApiClient test post
✅ 正常系
✅ 正常系
✅ 準正常系 ステータスコードが 401 の場合は ApiException が スローされるはず。
✅ 準正常系 レスポンスが null の場合は、ApiException が スローされるはず。
✅ test/core/http/response/api_response_test.dart
✅ ApiResponse のパーステスト
✅ test/core/trip_app_test.dart
✅ アプリの初回起動時は、LoadingPage が表示されるはず。
✅ test/feature/auth/controller/auth_controller_test.dart
login
✅ 正常系 LINEログイン
✅ 正常系 Googleログイン
✅ 準正常系 LINEログインに失敗するとExceptionハンドラーが呼ばれる
✅ 準正常系 Googleログインに失敗するとExceptionハンドラーが呼ばれる
logOut
✅ 正常系
✅ 準正常系 Firebaseログアウトに失敗
✅ test/feature/auth/interactor/auth_interactor_test.dart
AuthInteractor loginWithLINE
✅ 正常系
✅ 準正常系 LINEログインに失敗した際は後続の処理が呼ばれず例外を返す
✅ 準正常系 API通信に失敗した場合、Firebaseログインは呼ばれず例外を返す
✅ 準正常系 Firebaseでのカスタムトークンログインが失敗した場合例外を返す
AuthInteractor loginWithGoogle
✅ 正常系
✅ 準正常系 googleログインに失敗すると後続の処理が呼ばれず例外を返す
✅ 準正常系 FirebaseGoogleログインに失敗すると例外を返す
✅ 準正常系 API通信に失敗するとFirebaseログアウトも行う
✅ test/feature/trips/controller/trip_belonging_controller_test.dart
コンストラクター
✅ 正常系
addBelonging
✅ 正常系
changeCheckStatus
✅ 正常系
✅ test/feature/trips/controller/trip_controller_test.dart
createTrip
✅ 正常系
✅ 異常系 旅作成に失敗
fetchTripsByUserId
✅ 正常系
✅ 準正常系 インタラクターがスローする例外のハンドリング
✅ test/feature/trips/data/repositories/trip_repository_test.dart
createTrip
✅ 正常系
✅ 準正常系 旅取得APIからエラーが返却された場合エラー返却
invite
✅ 正常系
✅ 準正常系 旅取得APIからエラーが返却された場合エラー返却
fetchTripsByUserId
✅ 正常系
✅ 準正常系 旅取得APIへのリクエスト時の例外はそのままリスローされるはず
getInvitationByCode
✅ 正常系
✅ 準正常系 招待取得に失敗すると例外発生させる
addTripBelonging
✅ 正常系
✅ 準正常系 持ち物追加に失敗すると例外を返却
fetchTripBelongings
✅ 正常系
✅ 準正常系 持ち物追加に失敗すると例外を返却
changeBelongingCheckStatus
✅ 正常系
✅ 正常系
✅ test/feature/trips/domain/entity/value/trip_belonging_name_test.dart
TripBelongingName コンストラクタ
✅ 正常系
✅ 純正常系 持ち物名は空文字は受け付けない
✅ test/feature/trips/domain/entity/value/trip_belonging_num_of_test.dart
TripBelongingName コンストラクタ
✅ 正常系
✅ 純正常系 持ち物は0個で指定できない
✅ test/feature/trips/domain/entity/value/trip_invitation_num_test.dart
TripInvitationNum コンストラクタ
✅ 正常系
✅ 準正常系 1~10人しか招待することはできない
✅ test/feature/trips/domain/entity/value/trip_period_test.dart
TripPeriod コンストラクタ
✅ 正常系 fromDateとendDateが同じ日付
✅ 正常系 endDateがfromDateより未来の日付
✅ 純正常系 endDateがfromDateより過去の日付の場合エラー
✅ test/feature/trips/domain/entity/value/trip_title_test.dart
TripTitle コンストラクタ
✅ 正常系
✅ 純正常系 タイトルは空文字は受け付けない
✅ test/feature/trips/domain/trip_interactor_test.dart
✅ 準正常系 fetchUser should throw exception
fetchTripsByUserId
✅ 正常系 fetchTripsByUserId should call tripRepo.fetchUser
✅ test/feature/user/controller/app_user_controller_test.dart
AppUserNotifier test
✅ 正常系 Firebase Auth がログイン状態の場合は AppUser が取得できている
✅ 正常系 Firebase Auth が 非ログイン状態の場合は AppUser は null
✅ test/feature/user/data/user_repository_test.dart
fetchUser
✅ 正常系
✅ 準正常系 APIリクエスト時に発生した例外はそのままリスローする
✅ test/feature/user/domain/user_interactor_test.dart
✅ 正常系 fetchUser should call userRepo.fetchUser
✅ 準正常系 fetchUser should throw exception
Loading