Dino Radakovic
ffc477e705
googletest: Fix incorrect comment about value_param of internal::MakeAndRegisterTestInfo
...
This was probably a copy-paste from the comment about `type_param`.
PiperOrigin-RevId: 600493462
Change-Id: I4a41c2673dd6560db0f68856aab3d32b103164b1
2024-01-22 10:12:16 -08:00
Dino Radakovic
518387203b
StartsWith: Explicitly construct matcher-typed strings from matchee parameter
...
The current implementation breaks for absl::string_view on gcc, c++14: https://godbolt.org/z/Tzd3q1fqx
Closes #4391
PiperOrigin-RevId: 575853981
Change-Id: I7b782598add480eb69d4ca27ea4a4bf5f758f6a3
2023-10-23 10:11:36 -07:00
Dino Radakovic
829c19901d
gtest-death-test-internal: Delete obsolete string constants
...
These are not used anywhere in googletest and they are in namespace `testing::internal`
PiperOrigin-RevId: 574171727
Change-Id: I5f668157a81ba3efaed77c1302b40cf07eeda52b
2023-10-17 09:18:52 -07:00
Dino Radakovic
beb552fb47
gmock_cook_book: Document DoAll's return type requirement
...
The requirement is vaguely documented by "Only the return value of the last action in the sequence will be used.".
However, this can be misleading, as users could potentially expect default-constructed values to be returned in absence of a matching return type.
PiperOrigin-RevId: 570450839
Change-Id: Ibd98a6e6b2aaf2a8cfc15ed6aeab442526eab98e
2023-10-03 11:41:48 -07:00
Dino Radakovic
167a2255ae
googletest: Update absl to version with HasAbslStringify
...
https://github.com/abseil/abseil-cpp/commit/9e1789ffea47fdeb3133aa42aa9592f3673fb6ed
PiperOrigin-RevId: 567324946
Change-Id: I8adc5803a81075a635dad79aa0312d4455e1ad63
2023-09-21 09:08:09 -07:00
Dino Radakovic
8a6feabf04
googletest: Add universal printer for std::span
...
Fixes #4318
PiperOrigin-RevId: 560089120
Change-Id: I9d0d098140033520266747a1689e953ee8307c47
2023-08-25 07:46:02 -07:00
Dino Radakovic
c374da15c5
googletest: Replace http with https in links to docs
...
This is a prerequisite for #4341
PiperOrigin-RevId: 559132807
Change-Id: Iadc961913e0ff107c5333dae17be5f8638663836
2023-08-22 09:21:04 -07:00
Dino Radakovic
dd9a956904
gtest_help_test: Make method names snake_case, conforming with [the style guide]( https://google.github.io/styleguide/pyguide#316-naming )
...
PiperOrigin-RevId: 557133618
Change-Id: I27202ee91ee81b3d2e4c28102190d2bde8efba05
2023-08-15 08:00:31 -07:00
Dino Radakovic
6513d0272d
gtest_help_test: Inline test helper functions
...
`TestNonHelpFlag` is only a few asserts with no logic, which is easier to read in line, and helper `TestHelpFlag` is used in a single test case.
PiperOrigin-RevId: 557122793
Change-Id: I7367424abfbb883c10c260fae066a2071e5dfa0e
2023-08-15 07:11:58 -07:00
Dino Radakovic
d76e9e0dd9
gtest_help_test: Delete obsolete helper TestUnknownFlagWithAbseil
...
PiperOrigin-RevId: 557116814
Change-Id: I91e06b0d6001952366c50201b67491475a1f98af
2023-08-15 06:42:46 -07:00
Dino Radakovic
6abc9e3d79
Make references to #includes consistent across docs
...
PiperOrigin-RevId: 554561504
Change-Id: Ia02ab6ac646bf6637d6f500a4aaedd14e0a04798
2023-08-07 12:44:53 -07:00
Dino Radakovic
4c7aee827e
Skip entire test suite with GTEST_SKIP() in SetUpTestSuite
...
Fixes #4273
PiperOrigin-RevId: 540254167
Change-Id: I2555740d10284223539035bf73f88554fcf73f8a
2023-06-14 06:41:11 -07:00
Dino Radakovic
06f44bc951
Copy supported platforms from README onto https://google.github.io/googletest/platforms.html
...
PiperOrigin-RevId: 537016664
Change-Id: Ie62891a1061465a009b90feba0ccb91d85591160
2023-06-01 07:28:42 -07:00
Dino Radakovic
04cf298916
Provide example for setting C++ language standard in GoogleTest's Bazel quickstart and readme.
...
An equivalent for CMake was merged in https://github.com/google/googletest/commit/aa99ce5a0db4215bb8e2cda3ee68b6b8d4896815
Fixes #4254
PiperOrigin-RevId: 536759641
Change-Id: I8400064a24e0d78f17a0720046f505efa1167b4f
2023-05-31 10:45:43 -07:00
Dino Radakovic
cb455a71fb
Fix typo in version number example in README
...
PiperOrigin-RevId: 532796425
Change-Id: If81029216cf12b9b05f8e2d79671ba106ebd28fb
2023-05-17 08:31:17 -07:00
Dino Radakovic
d6fb5e3bf7
Explicitly document googletest release tag format
...
Fixes #4235
PiperOrigin-RevId: 532446854
Change-Id: If7e1dade02a80d9a30813c136bba3f20c796f0fa
2023-05-16 07:05:45 -07:00
Dino Radakovic
797b0ad2a3
Use GTEST_INTERNAL_CPLUSPLUS_LANG instead of __cplusplus
...
Some versions of MSVC provide incorrect values for the latter and rely on _MSVC_LANG instead.
Fixes #4226 .
PiperOrigin-RevId: 527919195
Change-Id: Ifcca4612074f5ebc5337094426866a187f79f90a
2023-04-28 10:16:07 -07:00
Dino Radakovic
e1ee0fa3e1
Fix indentation syntax error in feature request issue template
...
Fixes #4166
PiperOrigin-RevId: 514427586
Change-Id: I947b2a0f3687430f27e37fcd2b3fff8b1cb0b16e
2023-03-06 09:04:22 -08:00
Dino Radakovic
39a26e12d6
Avoid redundant declaration of static constexpr members in c++17
...
Keep declarations in c++ < 17 using new macro, GTEST_INTERNAL_NEED_REDUNDANT_CONSTEXPR_DECL.
Fixes #4148 .
PiperOrigin-RevId: 511510401
Change-Id: I76c3f2fccf07a0978adcbe5f8f0203b9d0c33872
2023-02-22 09:02:55 -08:00
Dino Radakovic
d9a4bbcaf2
Update googletest's test docker containers
...
PiperOrigin-RevId: 511500508
Change-Id: Ib686f93d317b95ac9b9bcb0a5566500316ba1929
2023-02-22 08:18:38 -08:00
Dino Radakovic
bba28fa8b2
Announce that GitHub actions are not GoogleTest's canonical CI
...
PiperOrigin-RevId: 502654465
Change-Id: I51269e8c389ad63f3737132feec1b6d20dc4c314
2023-01-17 12:14:32 -08:00
Dino Radakovic
b3bfebd796
Comment that q0_ in primer should remain empty
...
PiperOrigin-RevId: 496642643
Change-Id: I178efeda76cbf46e5f4bb91454c205b9a060a4ea
2022-12-20 06:12:13 -08:00
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
2022-10-25 06:29:34 -07:00
Dino Radakovic
88c59752c0
Add Windows CI script
...
PiperOrigin-RevId: 481680362
Change-Id: I87b2b71427a8ad2603f5445d6ef794c3fa84746e
2022-10-17 10:39:48 -07:00
Dino Radakovic
4c9a3bb62b
gtest_unittest: Call FAIL() in lambda, fix incorrect fatality expectation
...
FAIL() evaluates into a return statement: https://github.com/google/googletest/blob/5b909beeec178f338be997830b6c31a80cda7a93/googletest/include/gtest/internal/gtest-internal.h#L1347
Calling it from the body of the test case turns all subsequent expectations into no-ops.
Fixes #3941
PiperOrigin-RevId: 466104977
Change-Id: Ic15f43acb734295a5c9690a2b5eec6f65e8c0814
2022-08-08 11:48:12 -07:00
Dino Radakovic
5b909beeec
Explicitly instantiate matchee std::string in MatchesRegex
...
If this ever turns out to be a performance issue, we could use std::conditional and std::is_same to avoid copying std::strings.
Fixes #3949
PiperOrigin-RevId: 465353572
Change-Id: If2d691bccb626c692c87e006df5afe88a4ed1542
2022-08-04 10:53:57 -07:00
Dino Radakovic
b1e9b6323a
Add IsEmpty overload for C-style strings
...
Fixes #3937
PiperOrigin-RevId: 463180144
Change-Id: I21b528acc4c3f3aba4234642be01fcead7fe7f00
2022-07-25 14:38:26 -07:00
Dino Radakovic
8d51dc50eb
gmock-internal-utils.cc: Avoid implicit conversion from int to char
...
Fixes #3832
PiperOrigin-RevId: 449158813
Change-Id: Ibe85239ab1f123097b2c1b61616c9d611e5b90d0
2022-05-17 01:37:27 -07:00
Dino Radakovic
ae5e06dd35
Remove references to deleted script gen_gtest_pred_impl.py
...
PiperOrigin-RevId: 434464892
Change-Id: Iaa2277f26d0049b3d792e87f64679774a28205c6
2022-03-14 08:00:38 -07:00
Dino Radakovic
0b7798b2fb
Change ReturnArg to use perfect forwarding of arguments ( #3733 )
...
PiperOrigin-RevId: 424355706
Change-Id: I618e5574b4b2c56a343905c20d8cc6d2a70cbcd1
2022-01-26 08:40:27 -08:00
Dino Radakovic
4e9fe30884
Fix reference to source file in gmock FAQ
...
PiperOrigin-RevId: 421915817
Change-Id: I22800e8943f9eb050304c521701d4040b1b7a914
2022-01-14 14:40:35 -08:00
Dino Radakovic
97a467571a
Release tests for UnitTestOptions::MatchesFilter
...
PiperOrigin-RevId: 416567004
Change-Id: Ic407e0fcdf8ffd1c012a1b12df2837bdac1dccb4
2021-12-15 08:36:08 -08:00
dinord
e4717df71a
Merge pull request #3195 from Inujel:fix-3194
...
PiperOrigin-RevId: 398271948
2021-09-23 23:31:42 +00:00
dinord
09074c1571
Merge pull request #3573 from cclauss:patch-1
...
PiperOrigin-RevId: 397998384
2021-09-23 23:31:33 +00:00
dinord
319a9d19bc
Merge pull request #3574 from Vertexwahn:switch_to_native_cc_rules
...
PiperOrigin-RevId: 397995447
2021-09-23 23:31:25 +00:00
dinord
df43ce9675
Merge pull request #3499 from slowy07:fixing
...
PiperOrigin-RevId: 386888057
2021-07-29 03:26:54 +00:00
dinord
355d57d90d
Merge pull request #3443 from hyukmyeong:typo
...
PiperOrigin-RevId: 380705469
2021-06-22 13:30:42 +00:00
Dino Radaković
ec7fa96f29
Merge pull request #3158 from GauthamBanasandra:patch-1
...
PiperOrigin-RevId: 367681693
2021-04-12 20:14:10 -07:00
Dino Radaković
ad462b70c9
Merge pull request #3319 from a-sully:patch-1
...
PiperOrigin-RevId: 367509099
2021-04-09 09:03:55 -07:00
Dino Radaković
6c5c4554ac
Merge pull request #3155 from ZedThree:cmake-alias-libraries
...
PiperOrigin-RevId: 365572439
2021-03-29 21:29:19 -07:00
Dino Radaković
bcfcf75ef6
Merge pull request #3184 from N-Dekker:PrintTo-type_index-overload
...
PiperOrigin-RevId: 361175466
2021-03-09 10:59:10 -08:00