Searched refs:DistanceFrom (Results 1 – 4 of 4) sorted by relevance
| /freebsd/contrib/googletest/googlemock/test/ |
| H A D | gmock-matchers-arithmetic_test.cc | 403 TEST(DistanceFrom, CanDescribeSelf) { in TEST() argument 404 Matcher<double> m = DistanceFrom(1.5, Lt(0.1)); in TEST() 407 m = DistanceFrom(2.5, Gt(0.2)); in TEST() 412 TEST(DistanceFrom, CanExplainMatchFailure) { in TEST() argument 413 Matcher<double> m = DistanceFrom(1.5, Lt(0.1)); in TEST() 419 TEST(DistanceFrom, MatchesDoubleWithinRange) { in TEST() argument 420 const Matcher<double> m = DistanceFrom(0.5, Le(0.1)); in TEST() 430 TEST(DistanceFrom, MatchesDoubleRefWithinRange) { in TEST() argument 431 const Matcher<const double&> m = DistanceFrom(0.5, Le(0.1)); in TEST() 441 TEST(DistanceFrom, CanBeImplicitlyConvertedToMatcher) { in TEST() argument [all …]
|
| /freebsd/contrib/googletest/docs/reference/ |
| H A D | matchers.md | 45 | `DistanceFrom(target, m)` | The distance between `argument` and `target` (computed by `abs(argume… 46 | `DistanceFrom(target, get_distance, m)` | The distance between `argument` and `target` (computed …
|
| /freebsd/contrib/googletest/googlemock/include/gmock/ |
| H A D | gmock-matchers.h | 4551 DistanceFrom(T target, GetDistance get_distance, 4560 DistanceFrom(T target, DistanceMatcher distance_matcher) { 4561 return DistanceFrom(std::move(target), internal::DefaultGetDistance(),
|
| /freebsd/contrib/googletest/docs/ |
| H A D | gmock_cook_book.md | 3808 For example, `DistanceFrom(target, m)` is a polymorphic matcher that takes a 3814 You can see the implementation of `DistanceFrom()` in
|