-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a CI check for reproducible builds
Add a --cfg reprocheck setting. When enabled, mock! and #[automock] will evaluate every call twice and verify that the output is identical. Also add a test case that is known to currently generate non-reproducible output.
- Loading branch information
Showing
3 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// vim: tw=80 | ||
//! Methods with multiple generic lifetime parameters should produce their | ||
//! generated code deterministically. | ||
//! | ||
//! This test is designed to work with "--cfg reprocheck" | ||
#![deny(warnings)] | ||
|
||
use mockall::*; | ||
|
||
#[automock] | ||
trait Foo { | ||
fn foo<'a, 'b, 'c, 'd, 'e, 'f>(&self, x: &'a &'b &'c &'d &'e &'f i32); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters