Skip to main content
Content
- How to enable matchers
- EXPECT_THAT and GTest matchers
- Why do we use matchers?
- Easy to read.
- Can loop through containers.
- They are already tested.
- Can be chained.
- Can be customized.
- Generic and Numeric Comparison
- Boolean And Pointer Comparison
- Reference Matcher
- TypedEq Matcher
- Wildcard
- Optional
- VariantWith
- String Comparison
- POSIX extended regular expression syntax supported
- FloatEq and FloatNear
- IsNan, NanSensitiveFloatEq
- Floating Point Matchers
- Composite Matchers
- Container Matchers
- ElementsAre
- UnorderedElementsAre
- WhenSorted
- WhenSortedBy
- UnorderedElementsAreArray
- Each
- Contains
- IsSubsetOf
- Any
- Contains Times
- Pointwise
- ContainerEq
- Member Matchers
- Pair
- Key
- FieldsAre for Tuple and Struct
- Property
- Pointer Matchers
- GMock Truly
- Clearly state that we expected a true
- Custom Matchers
All powerpoint slides
Learnt from here
Comments
Post a Comment