Logo
Explore Help
Sign In
tqcq/CPM.cmake
0
0
Fork 0
You've already forked CPM.cmake
mirror of https://github.com/cpm-cmake/CPM.cmake.git synced 2025-11-22 12:17:36 -05:00
Code Issues Packages Projects Releases Wiki Activity
Files
1184a6e6e7e33b95bec4a6c6a7f75e4917724074
CPM.cmake/examples/TestingFramework/SomeTest.cpp

19 lines
357 B
C++
Raw Normal View History

Added support for bitbucket repositories (#256) * Added support for bitbucket repositories: * added variable BITBUCKET_REPOSITORY * added short syntax in form "bb:user/repo" * added description of that to readme.md * Added test for bitbucket short syntax * Used elseif syntax in handling of git services (github, gitlab, bitbucket). * Added HEMRND/TestingFramework example located on bitbucket.org * Reformatted CMakeLists.txt in TestingFramework example * Bumped version of TestingFramework. It supports older version of c++ standard. Co-authored-by: Paweł Gorgoń <pgorgon@hem-e.com>
2021-06-08 19:15:40 +02:00
#include <HEM/TestingFramework.hpp>
using namespace fakeit;
class ITest {
public:
virtual int getInt() = 0;
};
TEST_CASE("Testing Framework Test") {
constexpr int someIntValue = 123456;
Mock<ITest> testMock;
When(Method(testMock, getInt)).Return(someIntValue);
int readValue = testMock.get().getInt();
REQUIRE(readValue == someIntValue);
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.1 Page: 567ms Template: 8ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API