-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
test-util
features to hide test utilities
We had a handful of items intended for use exclusively in tests that were marked `pub` so that targets like `monolithic_integration_test` can use them, but tagged `#[doc(hidden)]` because they aren't part of the proper public interface to any component of Janus. We now instead hide those test utilities behind a new `test-util` feature defined on crates `janus_core`, `janus_client` and `janus_server`. We could also have moved items to the `test_util` crate but there's something to be said for having e.g. the code that inserts tasks into the datastore be right next to all the other datastore code, instead of `test_util/lib.rs` becoming a dumping ground of items unrelated to each other save that they are used in tests. Additionally, if we ever want to "promote" any of these `test_util` items to being used in production configurations, that's a simple matter of deleting a `#[cfg(feature = "test-util")]` instead of having to move a function and annihilate its git history. Resolves #141
- Loading branch information
1 parent
40a176d
commit 4463aed
Showing
9 changed files
with
13 additions
and
11 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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