Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion googletest/src/matchers/ge_matcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pub fn ge<ActualT: Debug + PartialOrd<ExpectedT>, ExpectedT: Debug>(
GeMatcher::<ActualT, _> { expected, phantom: Default::default() }
}

pub struct GeMatcher<ActualT, ExpectedT> {
struct GeMatcher<ActualT, ExpectedT> {
expected: ExpectedT,
phantom: PhantomData<ActualT>,
}
Expand Down
2 changes: 1 addition & 1 deletion googletest/src/matchers/le_matcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pub fn le<ActualT: Debug + PartialOrd<ExpectedT>, ExpectedT: Debug>(
LeMatcher::<ActualT, _> { expected, phantom: Default::default() }
}

pub struct LeMatcher<ActualT, ExpectedT> {
struct LeMatcher<ActualT, ExpectedT> {
expected: ExpectedT,
phantom: PhantomData<ActualT>,
}
Expand Down
2 changes: 1 addition & 1 deletion googletest/src/matchers/lt_matcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pub fn lt<ActualT: Debug + PartialOrd<ExpectedT>, ExpectedT: Debug>(
LtMatcher::<ActualT, _> { expected, phantom: Default::default() }
}

pub struct LtMatcher<ActualT, ExpectedT> {
struct LtMatcher<ActualT, ExpectedT> {
expected: ExpectedT,
phantom: PhantomData<ActualT>,
}
Expand Down
72 changes: 37 additions & 35 deletions googletest/src/matchers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,56 +16,56 @@

pub mod all_matcher;
pub mod any_matcher;
pub mod anything_matcher;
pub mod char_count_matcher;
mod anything_matcher;
mod char_count_matcher;
pub mod conjunction_matcher;
pub mod container_eq_matcher;
pub mod contains_matcher;
pub mod contains_regex_matcher;
mod container_eq_matcher;
mod contains_matcher;
mod contains_regex_matcher;
pub mod disjunction_matcher;
pub mod display_matcher;
pub mod each_matcher;
mod display_matcher;
mod each_matcher;
pub mod elements_are_matcher;
pub mod empty_matcher;
pub mod eq_deref_of_matcher;
pub mod eq_matcher;
pub mod err_matcher;
mod empty_matcher;
mod eq_deref_of_matcher;
mod eq_matcher;
mod err_matcher;
pub mod field_matcher;
pub mod ge_matcher;
pub mod gt_matcher;
pub mod has_entry_matcher;
mod ge_matcher;
mod gt_matcher;
mod has_entry_matcher;
pub mod is_matcher;
pub mod is_nan_matcher;
pub mod le_matcher;
pub mod len_matcher;
pub mod lt_matcher;
pub mod matches_pattern;
pub mod matches_regex_matcher;
pub mod near_matcher;
pub mod none_matcher;
pub mod not_matcher;
pub mod ok_matcher;
pub mod points_to_matcher;
mod is_nan_matcher;
mod le_matcher;
mod len_matcher;
mod lt_matcher;
mod matches_pattern;
mod matches_regex_matcher;
mod near_matcher;
mod none_matcher;
mod not_matcher;
mod ok_matcher;
mod points_to_matcher;
pub mod pointwise_matcher;
pub mod predicate_matcher;
mod predicate_matcher;
pub mod property_matcher;
pub mod some_matcher;
pub mod str_matcher;
pub mod subset_of_matcher;
pub mod superset_of_matcher;
pub mod tuple_matcher;
mod some_matcher;
mod str_matcher;
mod subset_of_matcher;
mod superset_of_matcher;
mod tuple_matcher;
pub mod unordered_elements_are_matcher;

pub use anything_matcher::anything;
pub use char_count_matcher::char_count;
pub use container_eq_matcher::container_eq;
pub use contains_matcher::contains;
pub use contains_matcher::{contains, ContainsMatcher};
pub use contains_regex_matcher::contains_regex;
pub use display_matcher::displays_as;
pub use each_matcher::each;
pub use empty_matcher::empty;
pub use eq_deref_of_matcher::eq_deref_of;
pub use eq_matcher::eq;
pub use eq_matcher::{eq, EqMatcher};
pub use err_matcher::err;
pub use ge_matcher::ge;
pub use gt_matcher::gt;
Expand All @@ -75,13 +75,15 @@ pub use le_matcher::le;
pub use len_matcher::len;
pub use lt_matcher::lt;
pub use matches_regex_matcher::matches_regex;
pub use near_matcher::{approx_eq, near};
pub use near_matcher::{approx_eq, near, NearMatcher};
pub use none_matcher::none;
pub use not_matcher::not;
pub use ok_matcher::ok;
pub use points_to_matcher::points_to;
pub use predicate_matcher::{predicate, PredicateMatcher};
pub use some_matcher::some;
pub use str_matcher::{contains_substring, ends_with, starts_with, StrMatcherConfigurator};
pub use str_matcher::{
contains_substring, ends_with, starts_with, StrMatcher, StrMatcherConfigurator,
};
pub use subset_of_matcher::subset_of;
pub use superset_of_matcher::superset_of;