-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This macro compliments the existing `assert_contains_regex!`. While `assert_contains_regex!` implements the “exists” quantifier, the new macro implements a “for all” quantifier. In more details, the macro uses two steps: 1. Replace `{version}` in the `template` by a regular expression which will match _any_ SemVer version number. This allows, say, `docs.rs/{name}/{version}/` to match old and outdated occurrences of your package. 2. Find all matches in the file and check each match against `template`. This time we replace `{version}` with `pkg_version` so that we can do an accurate comparison with the actual package version. This allows you to ensure that, say, all `docs.rs` links are updated. Fixes #72.
- Loading branch information
Showing
7 changed files
with
305 additions
and
10 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
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
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
Oops, something went wrong.