File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
crates/crates_io_team_repo Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1+ # crates_io_team_repo
2+
3+ The code in this package interacts with the
4+ < https://github.com/rust-lang/team/ > repository.
5+
6+ The ` TeamRepo ` trait is used to abstract away the HTTP client for testing
7+ purposes. The ` TeamRepoImpl ` struct is the actual implementation of
8+ the trait.
9+
10+ If the ` mock ` feature is enabled, a ` MockTeamRepo ` struct is available,
11+ which can be used for testing purposes. This struct is generated automatically
12+ by the [ ` mockall ` ] ( https://docs.rs/mockall ) crate.
Original file line number Diff line number Diff line change 1- //! The code in this module interacts with the
2- //! <https://github.com/rust-lang/team/> repository.
3- //!
4- //! The [TeamRepo] trait is used to abstract away the HTTP client for testing
5- //! purposes. The [TeamRepoImpl] struct is the actual implementation of
6- //! the trait.
1+ #![ doc = include_str ! ( "../README.md" ) ]
72
83use async_trait:: async_trait;
94use reqwest:: { Certificate , Client } ;
You can’t perform that action at this time.
0 commit comments