Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Generate more mockito mocks
In a couple packages that are generating in a directory named
`integration_test/` instead of `test/`, add a `generate_for` argument to
run mockito against those tests.

Remove a stale unused mock file. If a `build_runner build` had been run
following the removal of the source file, with an asset graph from the
build that included the file, it would have been removed. If the source
file is removed and no builds are ever run with the asset graph from the
build including it, the output will be ignored by the build system.
  • Loading branch information
natebosch committed Mar 29, 2023
commit 57a3352bf6407e5aa3fa20025fe969e91ed0d585
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ targets:
- integration_test/*.dart
- lib/$lib$
- $package$
builders:
mockito|mockBuilder:
generate_for:
- integration_test/**
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Mocks generated by Mockito 5.3.2 from annotations
// Mocks generated by Mockito 5.4.0 from annotations
// in google_maps_flutter_web_integration_tests/integration_test/google_maps_controller_test.dart.
// Do not manually edit this file.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Mocks generated by Mockito 5.3.2 from annotations
// Mocks generated by Mockito 5.4.0 from annotations
// in google_maps_flutter_web_integration_tests/integration_test/google_maps_plugin_test.dart.
// Do not manually edit this file.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ targets:
- integration_test/*.dart
- lib/$lib$
- $package$
builders:
mockito|mockBuilder:
generate_for:
- integration_test/**
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Mocks generated by Mockito 5.3.2 from annotations
// Mocks generated by Mockito 5.4.0 from annotations
// in google_sign_in_web_integration_tests/integration_test/google_sign_in_web_test.dart.
// Do not manually edit this file.

Expand Down

This file was deleted.

4 changes: 4 additions & 0 deletions packages/url_launcher/url_launcher_web/example/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ targets:
- integration_test/*.dart
- lib/$lib$
- $package$
builders:
mockito|mockBuilder:
generate_for:
- integration_test/**
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Mocks generated by Mockito 5.3.2 from annotations
// Mocks generated by Mockito 5.4.0 from annotations
// in regular_integration_tests/integration_test/url_launcher_web_test.dart.
// Do not manually edit this file.

Expand Down
2 changes: 1 addition & 1 deletion script/tool/test/common/package_command_test.mocks.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Mocks generated by Mockito 5.3.2 from annotations
// Mocks generated by Mockito 5.4.0 from annotations
// in flutter_plugin_tools/test/common/package_command_test.dart.
// Do not manually edit this file.

Expand Down