Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump riverpod_lint from 1.1.6 to 1.3.1 #91

Closed
wants to merge 2 commits into from

Merge branch 'main' into dependabot/pub/riverpod_lint-1.3.1

4991426
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Closed

chore(deps): bump riverpod_lint from 1.1.6 to 1.3.1 #91

Merge branch 'main' into dependabot/pub/riverpod_lint-1.3.1
4991426
Select commit
Loading
Failed to load commit list.
This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / Flutter Test Report succeeded Apr 29, 2023 in 1s

Flutter Test Report ✅

Tests passed successfully

✅ test-report.log

54 tests were completed in 40s with 54 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
test/core/http/api_client/api_client_test.dart 5✅ 106ms
test/core/http/response/api_response_test.dart 1✅ 23ms
test/core/trip_app_test.dart 1✅ 749ms
test/feature/auth/controller/auth_controller_test.dart 6✅ 86ms
test/feature/auth/interactor/auth_interactor_test.dart 8✅ 94ms
test/feature/trips/controller/trip_controller_test.dart 4✅ 72ms
test/feature/trips/data/repositories/trip_repository_test.dart 10✅ 118ms
test/feature/trips/domain/entity/value/trip_belonging_name_test.dart 2✅ 29ms
test/feature/trips/domain/entity/value/trip_belonging_num_of_test.dart 2✅ 30ms
test/feature/trips/domain/entity/value/trip_invitation_num_test.dart 2✅ 40ms
test/feature/trips/domain/entity/value/trip_period_test.dart 3✅ 33ms
test/feature/trips/domain/entity/value/trip_title_test.dart 2✅ 34ms
test/feature/trips/domain/trip_interactor_test.dart 2✅ 65ms
test/feature/user/controller/app_user_controller_test.dart 2✅ 3s
test/feature/user/data/user_repository_test.dart 2✅ 66ms
test/feature/user/domain/user_interactor_test.dart 2✅ 56ms

✅ 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_controller_test.dart

createTrip
  ✅ 正常系
  ✅ 異常系 旅作成に失敗
fetchTripsByUserId
  ✅ 正常系
  ✅ 準正常系 インタラクターがスローする例外のハンドリング

✅ test/feature/trips/data/repositories/trip_repository_test.dart

createTrip
  ✅ 正常系
  ✅ 準正常系 旅取得APIからエラーが返却された場合エラー返却
invite
  ✅ 正常系
  ✅ 準正常系 旅取得APIからエラーが返却された場合エラー返却
fetchTripsByUserId
  ✅ 正常系
  ✅ 準正常系 旅取得APIへのリクエスト時の例外はそのままリスローされるはず
getInvitationByCode
  ✅ 正常系
  ✅ 準正常系 招待取得に失敗すると例外発生させる
addTripBelonging
  ✅ 正常系
  ✅ 準正常系 持ち物追加に失敗すると例外を返却

✅ 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