Skip to content

Conversation

@ravenblackx
Copy link
Contributor

Also adds a test for verify failing when given a non-mock call, which is currently untested.

Without this change, this mistake is possible and horrific:

verifyInOrder([
  fakeService.someCall(),
  fakeService.someOtherCall(),
]);

Which just always passes (assuming those calls don't throw), as does e.g. verifyInOrder(['banana']);

Also adds a test for verify failing when given a non-mock call.
@google-cla google-cla bot added the cla: yes label Mar 24, 2021
Copy link
Member

@srawlins srawlins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

@srawlins srawlins merged commit 88e434a into dart-lang:master Mar 24, 2021
srawlins added a commit that referenced this pull request Apr 7, 2021
PiperOrigin-RevId: 367238585
srawlins added a commit that referenced this pull request Apr 12, 2021
PiperOrigin-RevId: 367238585
srawlins added a commit that referenced this pull request Apr 12, 2021
*** Reason for rollback ***

Roll forward after fixes

*** Original change description ***

Automated g4 rollback of changelist 367238585.

*** Reason for rollback ***

Broke https://test.corp.google.com/ui#cl=365134781&flags=CAMQBQ==&id=OCL:365134781:BASE:367271161:1617822936639:6a37b0ed&t=//chrome/cloudcast/client/gamerx/audio/test:active_controller_audio_service_test_ddc_headless-chrome-linux

*** Original change description ***

Import #376

***

***

PiperOrigin-RevId: 367657308
srawlins added a commit that referenced this pull request Apr 12, 2021
PiperOrigin-RevId: 367238585
srawlins added a commit that referenced this pull request Apr 12, 2021
*** Reason for rollback ***

Roll forward after fixes

*** Original change description ***

Automated g4 rollback of changelist 367238585.

*** Reason for rollback ***

Broke https://test.corp.google.com/ui#cl=365134781&flags=CAMQBQ==&id=OCL:365134781:BASE:367271161:1617822936639:6a37b0ed&t=//chrome/cloudcast/client/gamerx/audio/test:active_controller_audio_service_test_ddc_headless-chrome-linux

*** Original change description ***

Import #376

***

***

PiperOrigin-RevId: 367657308
srawlins added a commit that referenced this pull request Apr 12, 2021
PiperOrigin-RevId: 367238585
srawlins added a commit that referenced this pull request Apr 12, 2021
*** Reason for rollback ***

Roll forward after fixes

*** Original change description ***

Automated g4 rollback of changelist 367238585.

*** Reason for rollback ***

Broke https://test.corp.google.com/ui#cl=365134781&flags=CAMQBQ==&id=OCL:365134781:BASE:367271161:1617822936639:6a37b0ed&t=//chrome/cloudcast/client/gamerx/audio/test:active_controller_audio_service_test_ddc_headless-chrome-linux

*** Original change description ***

Import #376

***

***

PiperOrigin-RevId: 367657308
srawlins added a commit that referenced this pull request Sep 13, 2022
The big change affecting all of the goldens is that we now add trailing commas.
The motivation is that code with trailing commas can avoid pathological corners
of the formatter, which can save entire seconds in generating some Dart source
code.

See details at: dart-archive/code_builder#376

  - f635ab6e2776955d057cf75757905f73f76adbd9 Add support for trailing commas in Emitter (#376) by Sam Rawlins <srawlins@google.com>
  - e082adb3e01d619370e7ec14b5f8ae6ac8ecf903 Fix spelling in README.md (#360) by Saint Gabriel <53136855+chineduG@users.noreply.github.com>
  - bed3ca90fb5a42b2b4c7fc93a8d73652a06d4314 Fix spelling in CHANGELOG.md (#361) by Saint Gabriel <53136855+chineduG@users.noreply.github.com>

PiperOrigin-RevId: 469597645
srawlins added a commit that referenced this pull request Sep 13, 2022
The big change affecting all of the goldens is that we now add trailing commas.
The motivation is that code with trailing commas can avoid pathological corners
of the formatter, which can save entire seconds in generating some Dart source
code.

See details at: dart-archive/code_builder#376

  - f635ab6e2776955d057cf75757905f73f76adbd9 Add support for trailing commas in Emitter (#376) by Sam Rawlins <srawlins@google.com>
  - e082adb3e01d619370e7ec14b5f8ae6ac8ecf903 Fix spelling in README.md (#360) by Saint Gabriel <53136855+chineduG@users.noreply.github.com>
  - bed3ca90fb5a42b2b4c7fc93a8d73652a06d4314 Fix spelling in CHANGELOG.md (#361) by Saint Gabriel <53136855+chineduG@users.noreply.github.com>

PiperOrigin-RevId: 469597645
srawlins added a commit that referenced this pull request Sep 13, 2022
The big change affecting all of the goldens is that we now add trailing commas.
The motivation is that code with trailing commas can avoid pathological corners
of the formatter, which can save entire seconds in generating some Dart source
code.

See details at: dart-archive/code_builder#376

  - f635ab6e2776955d057cf75757905f73f76adbd9 Add support for trailing commas in Emitter (#376) by Sam Rawlins <srawlins@google.com>
  - e082adb3e01d619370e7ec14b5f8ae6ac8ecf903 Fix spelling in README.md (#360) by Saint Gabriel <53136855+chineduG@users.noreply.github.com>
  - bed3ca90fb5a42b2b4c7fc93a8d73652a06d4314 Fix spelling in CHANGELOG.md (#361) by Saint Gabriel <53136855+chineduG@users.noreply.github.com>

PiperOrigin-RevId: 469597645
srawlins added a commit that referenced this pull request Sep 14, 2022
The big change affecting all of the goldens is that we now add trailing commas.
The motivation is that code with trailing commas can avoid pathological corners
of the formatter, which can save entire seconds in generating some Dart source
code.

See details at: dart-archive/code_builder#376

  - f635ab6e2776955d057cf75757905f73f76adbd9 Add support for trailing commas in Emitter (#376) by Sam Rawlins <srawlins@google.com>
  - e082adb3e01d619370e7ec14b5f8ae6ac8ecf903 Fix spelling in README.md (#360) by Saint Gabriel <53136855+chineduG@users.noreply.github.com>
  - bed3ca90fb5a42b2b4c7fc93a8d73652a06d4314 Fix spelling in CHANGELOG.md (#361) by Saint Gabriel <53136855+chineduG@users.noreply.github.com>

PiperOrigin-RevId: 469597645
mosuem pushed a commit to dart-lang/test that referenced this pull request Oct 17, 2024
PiperOrigin-RevId: 367238585
mosuem pushed a commit to dart-lang/test that referenced this pull request Oct 17, 2024
*** Reason for rollback ***

Roll forward after fixes

*** Original change description ***

Automated g4 rollback of changelist 367238585.

*** Reason for rollback ***

Broke https://test.corp.google.com/ui#cl=365134781&flags=CAMQBQ==&id=OCL:365134781:BASE:367271161:1617822936639:6a37b0ed&t=//chrome/cloudcast/client/gamerx/audio/test:active_controller_audio_service_test_ddc_headless-chrome-linux

*** Original change description ***

Import dart-lang/mockito#376

***

***

PiperOrigin-RevId: 367657308
mosuem pushed a commit to dart-lang/test that referenced this pull request Oct 17, 2024
The big change affecting all of the goldens is that we now add trailing commas.
The motivation is that code with trailing commas can avoid pathological corners
of the formatter, which can save entire seconds in generating some Dart source
code.

See details at: dart-archive/code_builder#376

  - f635ab6e2776955d057cf75757905f73f76adbd9 Add support for trailing commas in Emitter (dart-lang/mockito#376) by Sam Rawlins <srawlins@google.com>
  - e082adb3e01d619370e7ec14b5f8ae6ac8ecf903 Fix spelling in README.md (dart-lang/mockito#360) by Saint Gabriel <53136855+chineduG@users.noreply.github.com>
  - bed3ca90fb5a42b2b4c7fc93a8d73652a06d4314 Fix spelling in CHANGELOG.md (dart-lang/mockito#361) by Saint Gabriel <53136855+chineduG@users.noreply.github.com>

PiperOrigin-RevId: 469597645
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants