googletest
googletest copied to clipboard
GoogleTest - Google Testing and Mocking Framework
### Describe the issue I wanted to check the result of custom spaceship operator via `EXPECT_EQ`. This does not compile, because the result of spaceship operator is one of the...
**Describe the bug** `EXPECT_THAT` macro with the `Throws` expectation invokes the callable twice when it does not throw an exception. This does not happen when the exception is thrown. This...
I am creating this issue to talk about this similar problem described in: https://github.com/google/googletest/issues/1516. I'm using windows 11 latest version, visual C++ compiler. I am working in a code that...
**Describe the bug** See the code in the next section. It works well in Ubuntu 20.04 (GCC 9.4.0 and `libgtest-dev` from apt source), but it doesn't work on Ubuntu 22.04...
**Describe the bug** I get an error message when building a project **Does the bug persist in the most recent commit?** Yes I use preset: ``` "configurePresets": [ { "name":...
**Describe the bug** ``` [10/183] Building CXX object googlemock/CMakeFiles/gmock-matchers-misc_test.dir/test/gmock-matchers-misc_test.cc.obj In file included from D:/a/_temp/msys64/mingw64/include/c++/12.2.0/x86_64-w64-mingw32/bits/c++allocator.h:33, from D:/a/_temp/msys64/mingw64/include/c++/12.2.0/bits/allocator.h:46, from D:/a/_temp/msys64/mingw64/include/c++/12.2.0/deque:61, from D:/a/googletest/googletest/googlemock/test/gmock-matchers_test.h:42, from D:/a/googletest/googletest/googlemock/test/gmock-matchers-misc_test.cc:42: In member function 'void std::__new_allocator::deallocate(_Tp*, size_type) [with _Tp...
fix formatting
**Describe the bug** googletest relies on CMake setting the `/MD` compiler flag as a default https://github.com/google/googletest/blob/9c332145b71c36a5bad9688312c79184f98601ff/googletest/cmake/internal_utils.cmake#L40 However, if [CMP0091](https://cmake.org/cmake/help/latest/policy/CMP0091.html) is set to `NEW` this doesn't happen anymore. Because of this,...
**Describe the bug** Build fails: ``` In file included from /home/john/googletest/googletest/include/gtest/gtest.h:58, from /home/john/gnucash-git/libgnucash/engine/test/gtest-gnc-rational.cpp:24: /usr/include/c++/10.2.0/ostream:773:5: note: candidate: ‘template typename std::enable_if::type std::operator
**Does the feature exist in the most recent commit?** No **Why do we need this feature?** With the introduction of concepts and CTAD in C++, together with the growing realization...