MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / OsInStr

Function OsInStr

src/test/clientversion_tests.cpp:46–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44};
45
46bool OsInStr(const std::string& version) {
47 std::vector<std::string> systems = {
48 "BSD", "Linux", "Mac OS", "Windows", "Unknown OS"
49 };
50 for (std::string os : systems)
51 if (version.find(os) != std::string::npos)
52 return true;
53 return false;
54}
55
56BOOST_AUTO_TEST_CASE(platform_in_xtsubversion)
57{

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 1

findMethod · 0.80

Tested by

no test coverage detected