Searched refs:Cardinality (Results 1 – 8 of 8) sorted by relevance
/freebsd/contrib/googletest/googlemock/test/ |
H A D | gmock-cardinalities_test.cc | 47 using testing::Cardinality; 64 TEST(CardinalityTest, IsDefaultConstructable) { Cardinality c; } in TEST() 69 Cardinality c = Exactly(1); in TEST() 82 const Cardinality c = AtMost(5); in TEST() 92 Cardinality::DescribeActualCallCountTo(0, &ss0); in TEST() 96 Cardinality::DescribeActualCallCountTo(1, &ss1); in TEST() 100 Cardinality::DescribeActualCallCountTo(2, &ss2); in TEST() 104 Cardinality::DescribeActualCallCountTo(3, &ss3); in TEST() 110 const Cardinality c = AnyNumber(); in TEST() 126 const Cardinality c = AnyNumber(); in TEST() [all …]
|
H A D | gmock-spec-builders_test.cc | 1853 Cardinality EvenNumber() { return Cardinality(new EvenNumberCardinality); } in EvenNumber()
|
/freebsd/contrib/googletest/googlemock/include/gmock/ |
H A D | gmock-cardinalities.h | 91 class GTEST_API_ Cardinality { 95 Cardinality() = default; 98 explicit Cardinality(const CardinalityInterface* impl) : impl_(impl) {} in Cardinality() function 136 GTEST_API_ Cardinality AtLeast(int n); 139 GTEST_API_ Cardinality AtMost(int n); 142 GTEST_API_ Cardinality AnyNumber(); 145 GTEST_API_ Cardinality Between(int min, int max); 148 GTEST_API_ Cardinality Exactly(int n); 151 inline Cardinality MakeCardinality(const CardinalityInterface* c) { in MakeCardinality() 152 return Cardinality(c); in MakeCardinality()
|
H A D | gmock-spec-builders.h | 697 const Cardinality& cardinality() const { return cardinality_; } in cardinality() 755 void SpecifyCardinality(const Cardinality& cardinality); 762 void set_cardinality(const Cardinality& a_cardinality) { in set_cardinality() 841 void UntypedTimes(const Cardinality& a_cardinality); 851 Cardinality cardinality_; // The cardinality of the expectation. 935 TypedExpectation& Times(const Cardinality& a_cardinality) { in Times()
|
/freebsd/contrib/googletest/googlemock/src/ |
H A D | gmock-cardinalities.cc | 129 void Cardinality::DescribeActualCallCountTo(int actual_call_count, in DescribeActualCallCountTo() 139 GTEST_API_ Cardinality AtLeast(int n) { return Between(n, INT_MAX); } in AtLeast() 142 GTEST_API_ Cardinality AtMost(int n) { return Between(0, n); } in AtMost() 145 GTEST_API_ Cardinality AnyNumber() { return AtLeast(0); } in AnyNumber() 148 GTEST_API_ Cardinality Between(int min, int max) { in Between() 149 return Cardinality(new BetweenCardinalityImpl(min, max)); in Between() 153 GTEST_API_ Cardinality Exactly(int n) { return Between(n, n); } in Exactly()
|
H A D | gmock-spec-builders.cc | 103 void ExpectationBase::SpecifyCardinality(const Cardinality& a_cardinality) { in SpecifyCardinality() 195 Cardinality::DescribeActualCallCountTo(call_count(), os); in DescribeCallCountTo() 262 void ExpectationBase::UntypedTimes(const Cardinality& a_cardinality) { in UntypedTimes()
|
/freebsd/contrib/googletest/docs/reference/ |
H A D | mocking.md | 130 | Cardinality | Meaning |
|
/freebsd/contrib/googletest/docs/ |
H A D | gmock_cook_book.md | 3823 using ::testing::Cardinality; 3842 Cardinality EvenNumber() {
|