Commit Graph

26 Commits

Author SHA1 Message Date
Christian Clauss
5b43f14be9
Fix typos discovered by codespell 2021-09-16 21:44:29 +02:00
theidexisted
088e6ed9a8
Simplify example code with c++11 2021-08-19 16:35:14 +08:00
Berke
f91723cb90 typo fix gmock_cook_book 2021-08-05 12:09:54 +03:00
Abseil Team
5f6a14c846 Googletest export
Create new Mocking Reference

PiperOrigin-RevId: 376951575
2021-06-02 17:55:01 -04:00
Abseil Team
d5d6ff940b Googletest export
Create Assertions Reference

PiperOrigin-RevId: 375824718
2021-06-02 17:54:45 -04:00
Abseil Team
aa9b44a186 Googletest export
Fix a comment in a code snippet.

PiperOrigin-RevId: 374504337
2021-05-19 13:10:13 -07:00
Abseil Team
eb6e9273dc Googletest export
Docs: Clarify that expectations must be set before mocks are exercised
PiperOrigin-RevId: 373644072
2021-05-18 13:48:14 -07:00
Abseil Team
065a0c8140 Googletest export
Clean up links to Matchers Reference

PiperOrigin-RevId: 370821457
2021-04-29 10:40:37 -04:00
Abseil Team
680a5aa337 Googletest export
Move matchers reference from cheat sheet into its own document

PiperOrigin-RevId: 370749693
2021-04-29 10:40:29 -04:00
Abseil Team
719fd2d36f Googletest export
Update the `DescribeTo` signature in the code example at the Writing New Polymorphic Matchers section in gmock_cook_book.

`os` should be a pointer to be consistent with the implementation, which dereference it as `*os`.

PiperOrigin-RevId: 370693387
2021-04-29 10:40:21 -04:00
Abseil Team
6a5eb80749 Googletest export
Update the example for Notify to use a lambda.
It is much less boilerplate and easier to remember.

PiperOrigin-RevId: 367284222
2021-04-07 23:39:39 -07:00
Abseil Team
c0dd0817cf Googletest export
Clarify explanation of mocking free functions

PiperOrigin-RevId: 364943561
2021-03-25 13:43:43 -07:00
Abseil Team
6dabd081e9 Googletest export
Code style cleanup in docs

PiperOrigin-RevId: 364907938
2021-03-25 13:43:28 -07:00
Abseil Team
d9c309fdab Googletest export
Add files for GitHub Pages

PiperOrigin-RevId: 358289110
2021-02-19 13:55:48 -05:00
Abseil Team
1a5a78b9a9 Googletest export
Add files for GitHub Pages

PiperOrigin-RevId: 357096486
2021-02-18 13:26:40 -05:00
Abseil Team
e935e6c387 Googletest export
Internal change

PiperOrigin-RevId: 356867746
2021-02-18 13:26:12 -05:00
Abseil Team
f3ef7e173f Googletest export
Fix table formatting in cookbook

PiperOrigin-RevId: 355659722
2021-02-05 10:41:32 -08:00
Abseil Team
b6323d216d Googletest export
Add a note to recommend against using `Property()` for functions that the test author does not own.

PiperOrigin-RevId: 355295183
2021-02-05 10:41:02 -08:00
Abseil Team
726118846d Googletest export
Document the fact that MatchAndExplain(T, MatchResultListener*) is supported.

PiperOrigin-RevId: 354172275
2021-02-05 10:39:39 -08:00
Abseil Team
273f8cb059 Googletest export
Add missing `is_gtest_matcher` to the polymorphic matcher example.

PiperOrigin-RevId: 353881883
2021-01-26 15:43:54 -05:00
Abseil Team
8a7618672a Googletest export
Delete internal tags from docs

PiperOrigin-RevId: 353769887
2021-01-26 15:43:46 -05:00
Abseil Team
14098f2015 Googletest export
Merge CONTRIBUTORS, delete LICENSEs in googletest/ and googlemock/

PiperOrigin-RevId: 352558822
2021-01-26 15:42:13 -05:00
Abseil Team
d128fc8252 Googletest export
Fixes #3222, fixes #3225, closes #3223

PiperOrigin-RevId: 352066131
2021-01-15 15:54:03 -05:00
Abseil Team
a2f906be69 Googletest export
Add "using is_gtest_matcher = void" to the DivisibleBy7Matcher example.

PiperOrigin-RevId: 351797821
2021-01-15 15:53:22 -05:00
Abseil Team
c13c27a513 Googletest export
Change Matcher<T> to allow binding an implementation by value directly:
 - Drop the requirement of MatcherInterface. Doing manual type erasure avoid
   extra layers in many cases.
 - Avoid the adaptor for `MatcherInterface<T>` and `MatcherInterface<const T&>` mismatch.
 - Use a small object optimization when possible. This makes things like
   `_` and `Eq(1)` really cheap and do not require memory allocations.
 - Migrate some matchers to the new model to speed them up and to test the new framework. More matchers to come in future changes.

PiperOrigin-RevId: 350580998
2021-01-13 20:59:20 -05:00
Abseil Team
489283524e Googletest export
Move all docs into top-level docs/ directory

PiperOrigin-RevId: 350211277
2021-01-13 20:59:12 -05:00