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

Omnimacro2 #12

Merged
merged 40 commits into from
Aug 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
d8191b0
Delete stray comment
asomers Jul 15, 2019
238f5c5
Convert mockall_derive's unit tests into functional tests
asomers Jul 15, 2019
02a54ab
WIP moving most of mockall's macros into mockall_derive
asomers Jul 15, 2019
c05c500
Don't forget to emit attrs during mockall_derive::expectation
asomers Jul 18, 2019
fd2d991
Comment out all of the mockall_derive tests that don't currently pass
asomers Jul 18, 2019
da92bda
Fix mocking methods with > 1 argument
asomers Jul 18, 2019
4c699e2
Fix deriving ref mut expectations
asomers Jul 18, 2019
60e9ed3
convert static methods to the new omnimacro2 way of doing things
asomers Jul 19, 2019
4cc0e5b
Fix mocking generic static methods
asomers Jul 19, 2019
899a04a
Fix mocking generic static methods & methods with multiple generic pa…
asomers Jul 20, 2019
14645cb
Fix mocking traits & methods with multiple generic parameters
asomers Jul 20, 2019
a3ae61a
Simplify use statements
asomers Jul 21, 2019
4b96b9a
Reenable some automock tests
asomers Jul 21, 2019
b6d9321
Print generated code if MOCKALL_DEBUG is set in the environment
asomers Jul 21, 2019
252c139
Fix mocking methods returning mutable references with arguments
asomers Jul 21, 2019
4640bc2
WIP converting expectation tests to mockall_derive tests
asomers Jul 21, 2019
11e7367
Fix automock with impl Trait return types
asomers Jul 21, 2019
74601b3
Delete a redundant test
asomers Jul 26, 2019
e36aba4
Belatedly document that methods returning &str can be mocked
asomers Jul 26, 2019
11c6f00
Split mockall_derive's integration tests into separate files
asomers Jul 26, 2019
00dd402
Delete expectation!'s doc tests
asomers Jul 28, 2019
efdd872
Remove expectation! It's been inlined into the proc macros
asomers Jul 28, 2019
eb3b0a0
convert expectation!'s integrations tests to mock! and automock! tests
asomers Jul 28, 2019
57948e6
convert expectations!'s integrations tests to mock! and automock! tests
asomers Jul 28, 2019
402e4b7
Convert tests/ref_expectation.rs to mock! and automock! tests
asomers Jul 28, 2019
bbe7fea
Convert the last expectation! tests
asomers Jul 29, 2019
063da63
Fix Times.never()
asomers Jul 29, 2019
7c54ed1
Fix automock with new methods that have arguments
asomers Jul 29, 2019
697d341
Fix mocking methods with "super::" in the signature.
asomers Jul 30, 2019
0803098
Fix tests with stable Rust
asomers Jul 30, 2019
a60b680
Fix regression mocking ref expectations of multiple arguments
asomers Aug 1, 2019
a8fdd63
Inline static_expectation! into the proc macro.
asomers Aug 1, 2019
f417ef4
Forestall potential name conflicts with mocked methods' arguments
asomers Aug 1, 2019
2eaeb9d
Inline common_matcher! and common_methods! to the proc macros
asomers Aug 1, 2019
22bda4c
Finish inlining all of the non-proc macros
asomers Aug 1, 2019
a224f53
Anonymize more named locals in the generated code
asomers Aug 1, 2019
6cdded6
Mock generic constructor methods
asomers Aug 1, 2019
e21b8d1
Update CHANGELOG for improvements on the omnimacro2 branch
asomers Aug 2, 2019
06abf71
Use quote! to simplify generating code for static methods
asomers Aug 2, 2019
67b0e34
Fix mocking static methods with multiple arguments
asomers Aug 2, 2019
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
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,22 @@ This project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
### Added

- Allow mocking generic constructor methods
([#11](https://github.com/asomers/mockall/issues/11))

- Allow mocking methods that use `super` somewhere in their signatures.
([#8](https://github.com/asomers/mockall/issues/8))

### Changed
### Fixed

- Fixed `#[automock]` for `new` methods with arguments.
([#3](https://github.com/asomers/mockall/issues/3))

- Fixed the `never` method, which never actually worked.
([#10](https://github.com/asomers/mockall/issues/10))

- Fixed mocking generic traits or structs with generic methods
([6126359](https://github.com/asomers/mockall/commit/612635978540e06de93a218d937d70016221de9a))

Expand All @@ -19,6 +32,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).

### Removed

- Removed `expectation!`, used to manually mock methods in rare circumstances.
Now `mock!` and `#[automock]` are the only way to use Mockall.
([#12](https://github.com/asomers/mockall/pull/12))

## [0.1.1]
### Added
### Changed
Expand Down
Loading