Derek Mauro
d454936a0c
Migrate GoogleTest to a bug report template and add a link to the discussion
...
forum for non-bugs
PiperOrigin-RevId: 493632811
Change-Id: I7e02c3c479c2a925b7971f6a55e1e95a5a6f2d0a
2 years ago
Derek Mauro
97459e54ec
Remove the unused class TestNameIs
...
Fixes #4076
PiperOrigin-RevId: 493158910
Change-Id: Id66c0443a6f5f4d167ae39ac79766b32cf95a383
2 years ago
Abseil Team
1f643f71d4
Make SizeIsMatcher::Impl conform to the contract of MatcherDescriberInterface.
...
MatcherDescriberInterface specifies that DescribeTo "should print a verb phrase", but "size ..." is not a verb phrase. Currently, ElementsAre(SizeIs(9)) is described as "has 1 element that size is equal to 9". With this change, it will be described as "has 1 element that has a size that is equal to 9".
PiperOrigin-RevId: 492022324
Change-Id: I4083335f2419462464957521c1e033643b53b763
2 years ago
Abseil Team
a16bfcfda1
Disables `-Wunused-member-function` and `-Wused-but-marked-unused` that trigger via `MOCK_METHOD()` and `EXPECT_THAT()` macros.
...
Fixes : #4052 , #4055
PiperOrigin-RevId: 491647393
Change-Id: I8e2ad838156fa8c7e9dccd1740af797e694992b6
2 years ago
Abseil Team
e68764c147
This commit fixes a minor verb conjugation error in gmock_cook_book.md.
...
PiperOrigin-RevId: 490601453
Change-Id: I733b2ed8740b1c809dddb166a42993b869198469
2 years ago
Copybara-Service
519beb0e52
Merge pull request #4066 from zloylos:doc/make_uniq
...
PiperOrigin-RevId: 490057649
Change-Id: Ia788d55cfbc576e841064b8e907f8671cc46f3bf
2 years ago
Denis Hananein
834698cc9b
Change MakeUnique -> std::make_unique in docs
2 years ago
Abseil Team
9c332145b7
When printing floating-point numbers, print full precision by default.
...
To make debug output readable, we still use the faster 6-digit precision
sometimes, but only if it will round-trip.
This way, when a test fails due to a very small difference in floating-point
numbers, users will have enough digits to see the difference.
PiperOrigin-RevId: 488958311
Change-Id: Ibcac43f48a97006d89217530c69386cc4fa2735c
2 years ago
Abseil Team
4408a0288b
Remove incorrect usage of GTEST_ATTRIBUTE_UNUSED_ on classes.
...
Fixes : #4054
PiperOrigin-RevId: 488721587
Change-Id: I8742d8475376635c83edcf524796a6107042e89b
2 years ago
Copybara-Service
0e6aac2571
Merge pull request #4058 from zloylos:support-kitty-term
...
PiperOrigin-RevId: 488463135
Change-Id: I4180d766dabbe438210904e743e6e963122540f5
2 years ago
Copybara-Service
42c6f57f3c
Merge pull request #4060 from RerEngineer:main
...
PiperOrigin-RevId: 488456139
Change-Id: I648f3d2c6affadfea27214a6a22cacc576971cef
2 years ago
RerEngineer
148ab827ca
2 years ago
RerEngineer
9c990a7b1e
fixing gcc.gnu domain redirection
2 years ago
Abseil Team
912db74253
Defined a testing::SrcDir() function that returns the name of a directory
...
where ancillary data files can be found.
PiperOrigin-RevId: 487896836
Change-Id: Ie6b1ba734e900fa33872b63090879ee6efe33411
2 years ago
Denis Hananein
4b7f9453c5
Support kitty TERM
...
Signed-off-by: Denis Hananein <i@zloylos.me>
2 years ago
Copybara-Service
44c03643cf
Merge pull request #4039 from zloylos:fix-return-fail-at-4038
...
PiperOrigin-RevId: 487516335
Change-Id: Ib475750586fc7e6ab01729f65253e3a86916b994
2 years ago
Abseil Team
6b63c98ac4
Remove incorrect GTEST_ATTRIBUTE_UNUSED_ from InSequence class.
...
Fixes : #4048
PiperOrigin-RevId: 486951561
Change-Id: I4fae101b5ac5ed4f46c32aba8c36519e1f784db1
2 years ago
Abseil Team
386c7665f5
RecordProperty serializes ints and 64-bit ints, including size_ts
...
PiperOrigin-RevId: 486685761
Change-Id: I164d2646e65670d341dbf437ee571953c456677a
2 years ago
Abseil Team
a4f02ef389
Fix typo in documentation of ConvertGenerator()
...
PiperOrigin-RevId: 486316328
Change-Id: I91d5d5ba1aaf4a4ab14019c8963e7fe181722f95
2 years ago
Abseil Team
66366cea56
Add documentation for `--gunit_recreate_environments_when_repeating`.
...
PiperOrigin-RevId: 485895339
Change-Id: I09b0f535941531ef7bcb74593d385891d56b3e32
2 years ago
Copybara-Service
3026483ae5
Merge pull request #4041 from zloylos:allow-naming-expectations
...
PiperOrigin-RevId: 483683590
Change-Id: Id22de3a22018324e5c1e21e262ac5e027a83bf3e
2 years ago
Dino Radakovic
90171d1061
Use git commit hash in CMake quickstart
...
Commit hashes reflect GoogleTest's live-at-head stance.
Credits to @shinfd .
Fixes #4000
PiperOrigin-RevId: 483655943
Change-Id: Ieeb162859348dbe3657e18f283bac81412f2585d
2 years ago
Abseil Team
03597a01ee
Clarify that parameter generator does not evaluate immediately
...
This aims to avoid confusion as to what kinds of computations are valid inside
a parameter generator expression, calling out flags as a supported use case.
PiperOrigin-RevId: 483397027
Change-Id: I2d036fae95120d617f30a5566ea7498ce1f9bfb6
2 years ago
Denis Hananein
09e1c64f86
Fix format without expectation name
...
Signed-off-by: Denis Hananein <i@zloylos.me>
2 years ago
Denis Hananein
0d26378919
Change messages
...
Signed-off-by: Denis Hananein <i@zloylos.me>
2 years ago
Denis Hananein
f3eb2b7e38
Allow naming expectations #3970
...
Signed-off-by: Denis Hananein <i@zloylos.me>
2 years ago
Copybara-Service
e07617d6c6
Merge pull request #4036 from zloylos:fix-output-json-3884
...
PiperOrigin-RevId: 482287697
Change-Id: I1179a1570cd64fcb156bda26e5c779b876c51742
2 years ago
Abseil Team
6bad847991
CMake: Add GTEST_HAS_ABSL build option for using Absl
...
PiperOrigin-RevId: 482101793
Change-Id: I1bd140fd6a325f573c8a0c464e4dccd4acd0d0a3
2 years ago
Abseil Team
f372c76026
Adds Win32 UNC path support to FilePath::IsAbsolutePath() and FilePath::IsRootDirectory() in GoogleTest
...
Fixes : #3025
PiperOrigin-RevId: 481932601
Change-Id: I90fcb5b3d189aea79a0fd18735bad038b3511270
2 years ago
Derek Mauro
26d3ab5442
Fix detection of the no_sanitize("hwaddress") attribute
...
PiperOrigin-RevId: 481765573
Change-Id: I1ba829c3cbf364a51d3ba383ee3b474c0e109578
2 years ago
Copybara-Service
6d71d901e1
Merge pull request #4037 from KloolK:patch-1
...
PiperOrigin-RevId: 481734961
Change-Id: I629dc1ca3b10bf5fc6afc179b651a09081f5c919
2 years ago
Dino Radakovic
88c59752c0
Add Windows CI script
...
PiperOrigin-RevId: 481680362
Change-Id: I87b2b71427a8ad2603f5445d6ef794c3fa84746e
2 years ago
Denis Hananein
6f149520a1
Add return for GTEST_FAIL_AT
2 years ago
Derek Mauro
a9b2f0495c
Use attribute testing to simplify portable attribute macros
...
Fixes #4025
PiperOrigin-RevId: 481186097
Change-Id: Id7d09e4626e5ccf564e8cfaa65581c1cd827918d
2 years ago
Abseil Team
137b6e2770
Terse printing of std::reference_wrapper hides pointer
...
This matches the intention and documentation of terse printing which generally avoids printing the pointer.
PiperOrigin-RevId: 481178950
Change-Id: I27039dac1870934d2d5b212e2cc7e97ab82c5b34
2 years ago
Jan
a41c3d0fb8
Fix table markup in testing.md
2 years ago
Copybara-Service
67174c7675
Merge pull request #4035 from Vertexwahn:update-deps
...
PiperOrigin-RevId: 480696284
Change-Id: I633043f29883583efda7fa5a6dff754d096d6f7a
2 years ago
Abseil Team
d29b143bda
Workaround for Visual C++ error C2039 with std::tuple_element_t.
...
Fixes #3931
PiperOrigin-RevId: 480659507
Change-Id: I6fabef63b1285189a06375227273d9de2456e37a
2 years ago
Denis Hananein
1d505b8e40
Fix JSON output format #3884
2 years ago
Copybara-Service
d9bb8412d6
Merge pull request #4032 from Ferenc-:suggest-fixed-version
...
PiperOrigin-RevId: 480170766
Change-Id: Id596e5698bea789e431f7a50d4a662ffa7b5d9aa
2 years ago
Ferenc Géczi
671cfb7dbf
Suggests a release with fixed CMakeLists.txt
...
Signed-off-by: Ferenc Géczi <ferenc.gm@gmail.com>
2 years ago
Vertexwahn
0231584a60
Update rules_python, bazel_skylib and platfroms
2 years ago
Abseil Team
9fbb657503
Update the POSIX Extended section of the Regular Expression Wikipedia page
...
PiperOrigin-RevId: 479667644
Change-Id: I4ab03bd5f0520f8586667de8bd1b9443f241337a
2 years ago
Abseil Team
67e264834a
[fuchsia] Use __builtin_trap to trigger gunit_break_on_failure on non-x86 arch
...
In developing tests for the fuchsia debugger, it was found that in addition to catching gtest failures (which are implemented as software breakpoints) we also see PageFault exceptions, caused by this nullptr dereference.
PiperOrigin-RevId: 479365782
Change-Id: I84d805d94c2e46b6f3c982ca1ae49c6ac3ed3430
2 years ago
Abseil Team
08935483cb
Makes Clang compilations via Ninja on Windows define _DLL only for shared CRT builds, as one would already expect from MSVC builds. (Previously, static Clang/Ninja builds on Windows also implicitly defined _DLL, which was problematic.)
...
PiperOrigin-RevId: 479113168
Change-Id: I252d9be90fd33df75dab922e62b197208830d124
2 years ago
Copybara-Service
4052e05c29
Merge pull request #4020 from cclauss:patch-1
...
PiperOrigin-RevId: 478883171
Change-Id: I29c57a554000d051290bb66660fcf6132027f963
2 years ago
Copybara-Service
8c4dc11539
Merge pull request #3967 from BMBurstein:custom_type_combine
...
PiperOrigin-RevId: 478775323
Change-Id: I92231bb8edd8e01b9b7cbe445c43dcf84f458521
2 years ago
Abseil Team
93f08be653
Uses a simpler mechanism to disable the copying of GoogleTest test suites, to move code out of the TEST_P macro.
...
PiperOrigin-RevId: 478031678
Change-Id: I45f0ce17a4add526c86b8212d836d98d63b3a193
2 years ago
Baruch
79d0399dba
Merge branch 'google:main' into custom_type_combine
2 years ago
Abseil Team
d1a0039b97
Rollback: Moves boilerplate disabling copy constructor/assignment from GoogleTest's TEST_P macro into a header file to avoid triggering warnings in user code.
...
PiperOrigin-RevId: 477566426
Change-Id: Ia417e295d839f43be6e61a5699457866108f2a01
2 years ago