MCPcopy Create free account
hub / github.com/boutproject/BOUT-dev / IsSubString

Function IsSubString

tests/unit/test_extras.cxx:12–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#include <vector>
11
12::testing::AssertionResult IsSubString(const std::string& str,
13 const std::string& substring) {
14 if (str.find(substring) != std::string::npos) {
15 return ::testing::AssertionSuccess();
16 } else {
17 return ::testing::AssertionFailure() << '"' << substring << "\" not found in " << str;
18 }
19}
20
21void fillField(Field3D& f, std::vector<std::vector<std::vector<BoutReal>>> values) {
22 f.allocate();

Callers 5

TEST_FFunction · 0.85
TESTFunction · 0.85
TEST_FFunction · 0.85
TESTFunction · 0.85
TEST_FFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected