From fbfdd7eea3a8d560c8adb17cc83465c0b08d34fb Mon Sep 17 00:00:00 2001 From: michaelneale <14976+michaelneale@users.noreply.github.com> Date: Tue, 24 Sep 2024 08:33:15 +0000 Subject: [PATCH] goose changes --- pubspec.lock | 104 ++++++++++++++++++ pubspec.yaml | 1 + ...bdex_order_instructions_notifier_test.dart | 22 ++++ 3 files changed, 127 insertions(+) create mode 100644 test/features/tbdex/tbdex_order_instructions_notifier_test.dart diff --git a/pubspec.lock b/pubspec.lock index 30ca9fb..e307d23 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1,6 +1,22 @@ # Generated by pub # See https://dart.dev/tools/pub/glossary#lockfile packages: + _fe_analyzer_shared: + dependency: transitive + description: + name: _fe_analyzer_shared + sha256: "0b2f2bd91ba804e53a61d757b986f89f1f9eaed5b11e4b2f5a2468d86d6c9fc7" + url: "https://pub.dev" + source: hosted + version: "67.0.0" + analyzer: + dependency: transitive + description: + name: analyzer + sha256: "37577842a27e4338429a1cbc32679d508836510b056f1eedf0c8d20e39c1383d" + url: "https://pub.dev" + source: hosted + version: "6.4.1" archive: dependency: transitive description: @@ -41,6 +57,30 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.1" + build: + dependency: transitive + description: + name: build + sha256: "80184af8b6cb3e5c1c4ec6d8544d27711700bc3e6d2efad04238c7b5290889f0" + url: "https://pub.dev" + source: hosted + version: "2.4.1" + built_collection: + dependency: transitive + description: + name: built_collection + sha256: "376e3dd27b51ea877c28d525560790aee2e6fbb5f20e2f85d5081027d94e2100" + url: "https://pub.dev" + source: hosted + version: "5.1.1" + built_value: + dependency: transitive + description: + name: built_value + sha256: c7913a9737ee4007efedaffc968c049fd0f3d0e49109e778edc10de9426005cb + url: "https://pub.dev" + source: hosted + version: "8.9.2" characters: dependency: transitive description: @@ -73,6 +113,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.1.1" + code_builder: + dependency: transitive + description: + name: code_builder + sha256: f692079e25e7869c14132d39f223f8eec9830eb76131925143b2129c4bb01b37 + url: "https://pub.dev" + source: hosted + version: "4.10.0" collection: dependency: "direct main" description: @@ -114,6 +162,14 @@ packages: url: "https://github.com/TBD54566975/dap-dart.git" source: git version: "0.1.0" + dart_style: + dependency: transitive + description: + name: dart_style + sha256: "99e066ce75c89d6b29903d788a7bb9369cf754f7b24bf70bf4b6d6d6b26853b9" + url: "https://pub.dev" + source: hosted + version: "2.3.6" decimal: dependency: "direct main" description: @@ -334,6 +390,14 @@ packages: description: flutter source: sdk version: "0.0.0" + glob: + dependency: transitive + description: + name: glob + sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" + url: "https://pub.dev" + source: hosted + version: "2.1.2" hive: dependency: "direct main" description: @@ -526,6 +590,14 @@ packages: url: "https://pub.dev" source: hosted version: "5.1.1" + mockito: + dependency: "direct dev" + description: + name: mockito + sha256: "6841eed20a7befac0ce07df8116c8b8233ed1f4486a7647c7fc5a02ae6163917" + url: "https://pub.dev" + source: hosted + version: "5.4.4" mocktail: dependency: "direct dev" description: @@ -534,6 +606,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.3" + package_config: + dependency: transitive + description: + name: package_config + sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" + url: "https://pub.dev" + source: hosted + version: "2.1.0" path: dependency: transitive description: @@ -622,6 +702,14 @@ packages: url: "https://pub.dev" source: hosted version: "3.9.1" + pub_semver: + dependency: transitive + description: + name: pub_semver + sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" + url: "https://pub.dev" + source: hosted + version: "2.1.4" qr: dependency: transitive description: @@ -739,6 +827,14 @@ packages: description: flutter source: sdk version: "0.0.99" + source_gen: + dependency: transitive + description: + name: source_gen + sha256: "14658ba5f669685cd3d63701d01b31ea748310f7ab854e471962670abcf57832" + url: "https://pub.dev" + source: hosted + version: "1.5.0" source_span: dependency: transitive description: @@ -924,6 +1020,14 @@ packages: url: "https://pub.dev" source: hosted version: "13.0.0" + watcher: + dependency: transitive + description: + name: watcher + sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" + url: "https://pub.dev" + source: hosted + version: "1.1.0" web: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 4b0cf7f..75b801c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -50,6 +50,7 @@ dev_dependencies: sdk: flutter flutter_lints: ^3.0.0 mocktail: ^1.0.2 + mockito: ^5.0.16 flutter_launcher_icons: ^0.13.1 json_schema: ^5.1.7 typeid: ^1.0.1 diff --git a/test/features/tbdex/tbdex_order_instructions_notifier_test.dart b/test/features/tbdex/tbdex_order_instructions_notifier_test.dart new file mode 100644 index 0000000..a25e739 --- /dev/null +++ b/test/features/tbdex/tbdex_order_instructions_notifier_test.dart @@ -0,0 +1,22 @@ +import 'package:flutter_test/flutter_test.dart'; +import 'package:mockito/mockito.dart'; +import 'package:didpay/features/tbdex/tbdex_order_instructions_notifier.dart'; +import 'package:didpay/features/pfis/pfi.dart'; + +class MockPfi extends Mock implements Pfi {} + +void main() { + late TbdexOrderInstructionsNotifier notifier; + late MockPfi mockPfi; + + setUp(() { + mockPfi = MockPfi(); + notifier = TbdexOrderInstructionsNotifier(); + }); + + test('should initialize with provided PFI', () async { + expect(notifier, isA()); + }); + + // Add more tests here to stress-test TbdexOrderInstructionsNotifier +}