Abseil Team
79efd968bf
Googletest export
...
Update example for SetUpTestSuite/TearDownTestSuite to use modern C++ standards.
Currently it is using an outdated C++ construct (defining static member variables separately from the declaration).
PiperOrigin-RevId: 408663014
3 years ago
Abseil Team
aa486f165e
Googletest export
...
Add missing InitGoogleTest line in "Registering tests" example code
Copying the original code gives the following error message
"""
IMPORTANT NOTICE - DO NOT IGNORE:
This test program did NOT call testing::InitGoogleTest() before calling RUN_ALL_TESTS(). This is INVALID. Soon Google Test will start to enforce the valid usage. Please fix it ASAP, or IT WILL START TO FAIL.
"""
PiperOrigin-RevId: 408385714
3 years ago
Abseil Team
d4e084a1cc
Googletest export
...
Style only change. Make use of advanced testing functions `FloatLE` and `DoubleLE` consistent.
PiperOrigin-RevId: 407660542
3 years ago
Abseil Team
7cf37a18d1
Googletest export
...
Add docs section on test sharding
Fixes #3622
PiperOrigin-RevId: 405712812
3 years ago
Abseil Team
178cfacb24
Googletest export
...
add missing using ::testing::DoAll when DoAll used in example
PiperOrigin-RevId: 402416497
3 years ago
Christian Clauss
ee1be03b43
Fix remaining typos discovered by codespell
3 years ago
Vertexwahn
277e0a0168
Remove bazelbuild/rules_cc dependency
3 years ago
Christian Clauss
5b43f14be9
Fix typos discovered by codespell
3 years ago
Abseil Team
6bfab0becc
Googletest export
...
Add a caveat section for potential memory leak with derived classes using `SetUpTestSuite`.
PiperOrigin-RevId: 396986728
3 years ago
Abseil Team
2f80c2ba71
Googletest export
...
Standardize access to GoogleTest flags on GTEST_FLAG_GET/GTEST_FLAG_SET
Custom implementations can decide how access to flags is performed depending on the implementation of flags being used.
PiperOrigin-RevId: 391971115
4 years ago
theidexisted
088e6ed9a8
Simplify example code with c++11
4 years ago
Berke
f91723cb90
typo fix gmock_cook_book
4 years ago
Abseil Team
5b40153003
Googletest export
...
Format documentation
PiperOrigin-RevId: 388592443
4 years ago
Abseil Team
652ec31f9f
Googletest export
...
Introduce a new matcher for unescaping Base-64 strings to gmock.
PiperOrigin-RevId: 388471904
4 years ago
Abseil Team
c22ce88775
Googletest export
...
Standardize access to GoogleTest flags on GTEST_FLAG_GET/GTEST_FLAG_SET
Custom implementations can decide how access to flags is performed depending on the implementation of flags being used.
PiperOrigin-RevId: 388181424
4 years ago
Abseil Team
29d2540622
Googletest export
...
Proliferation of inclusive language.
PiperOrigin-RevId: 387535677
4 years ago
Abseil Team
8d51ffdfab
Googletest export
...
Remove unneeded using ::std::get;
PiperOrigin-RevId: 383688097
4 years ago
Abseil Team
8306020a3e
Googletest export
...
Add `Conditional` wrapper to gtest
This follows an initial proposal for an 'EqIff` matcher. `Conditional` was considered more precise as an EqIff() matcher may suffer from `Iff` not being universally understood.
PiperOrigin-RevId: 383407665
4 years ago
Abseil Team
4ec4cd23f4
Googletest export
...
Implement 'Contains(e).Times(n)' matcher modifier which allows to test for arbitrary occurrences including absence with Times(0).
PiperOrigin-RevId: 382210276
4 years ago
Hyuk Myeong
1745a405eb
fix typos
4 years ago
Abseil Team
b050d6c4b0
Googletest export
...
Internal change
PiperOrigin-RevId: 378672633
4 years ago
Abseil Team
aa533abfd4
Googletest export
...
Add CNAME file for custom domain
PiperOrigin-RevId: 378384525
4 years ago
Abseil Team
94bb786f0e
Googletest export
...
Update broken link
PiperOrigin-RevId: 378272186
4 years ago
Abseil Team
5bcd8e3bb9
Googletest export
...
Add CNAME file for custom domain
PiperOrigin-RevId: 377604116
4 years ago
Abseil Team
53495a2a7d
Googletest export
...
Create new Testing API reference
PiperOrigin-RevId: 376969148
4 years ago
Abseil Team
5f6a14c846
Googletest export
...
Create new Mocking Reference
PiperOrigin-RevId: 376951575
4 years ago
Abseil Team
2bd3481666
Googletest export
...
Fix broken link
PiperOrigin-RevId: 375995669
4 years ago
Abseil Team
d5d6ff940b
Googletest export
...
Create Assertions Reference
PiperOrigin-RevId: 375824718
4 years ago
Abseil Team
a3460d1aee
Googletest export
...
Add Google Analytics & footer
PiperOrigin-RevId: 375539689
4 years ago
Abseil Team
9741c42200
Googletest export
...
Add missing link
PiperOrigin-RevId: 374774097
4 years ago
Abseil Team
f8519738b0
Googletest export
...
Remove inapplicable example
PiperOrigin-RevId: 374762004
4 years ago
Abseil Team
aa9b44a186
Googletest export
...
Fix a comment in a code snippet.
PiperOrigin-RevId: 374504337
4 years ago
Abseil Team
eb6e9273dc
Googletest export
...
Docs: Clarify that expectations must be set before mocks are exercised
PiperOrigin-RevId: 373644072
4 years ago
Abseil Team
d69a112956
Googletest export
...
Fix code in googletest parameterized name example.
PiperOrigin-RevId: 373262838
4 years ago
Abseil Team
97f96cbc8a
Googletest export
...
Clean up heading levels and mention `::testing` namespace in Matchers Reference
PiperOrigin-RevId: 373242122
4 years ago
Abseil Team
5cfc63ddd5
Googletest export
...
Fix links in Matchers Reference
PiperOrigin-RevId: 372436732
4 years ago
Abseil Team
7e5a3a574e
Googletest export
...
Move actions reference into independent document
PiperOrigin-RevId: 371828549
4 years ago
Abseil Team
065a0c8140
Googletest export
...
Clean up links to Matchers Reference
PiperOrigin-RevId: 370821457
4 years ago
Abseil Team
680a5aa337
Googletest export
...
Move matchers reference from cheat sheet into its own document
PiperOrigin-RevId: 370749693
4 years ago
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
4 years ago
Abseil Team
6e8a8623fb
Googletest export
...
internal change
PiperOrigin-RevId: 370503556
4 years ago
Sebastian Krämer
124e87a303
Apply missing suggestions from code review for GTEST_SKIP
...
Co-authored-by: Eric Schmidt <shibumi@google.com>
4 years ago
Sebastian Krämer
1de97fd1c3
Apply suggestions from code review for GTEST_SKIP documentation
...
Extended example and some rewording by @ericschmidtatwork , thank you.
Co-authored-by: Eric Schmidt <shibumi@google.com>
4 years ago
Sebastian Krämer
c4ed56eb75
Add subsection for GTEST_SKIP documentation
...
A subsection "Skipping test execution" was added to document GTEST_SKIP
and where it can be used.
relates issue #1544
4 years ago
Abseil Team
486a4a6be5
Googletest export
...
Adds a warning about anonymous namespaces in relation to private testing.
PiperOrigin-RevId: 367730808
4 years ago
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
4 years ago
Abseil Team
8a65bc0303
Googletest export
...
Docs: Add examples for `FieldsAre` matcher
PiperOrigin-RevId: 367263024
4 years ago
Abseil Team
54689b1935
Googletest export
...
Docs: Clarifying matcher in `Pointwise` and `UnorderedPointwise`
PiperOrigin-RevId: 367059198
4 years ago
Abseil Team
c0dd0817cf
Googletest export
...
Clarify explanation of mocking free functions
PiperOrigin-RevId: 364943561
4 years ago
Abseil Team
66836f0a90
Googletest export
...
Minor formatting updates
PiperOrigin-RevId: 364935205
4 years ago