MCPcopy Create free account
hub / github.com/argotorg/solidity / isValidSemanticTestPath

Function isValidSemanticTestPath

test/Common.cpp:294–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292std::unique_ptr<CommonOptions const> CommonOptions::m_singleton = nullptr;
293
294bool isValidSemanticTestPath(boost::filesystem::path const& _testPath)
295{
296 bool insideSemanticTests = false;
297 fs::path testPathPrefix;
298 for (auto const& element: _testPath)
299 {
300 testPathPrefix /= element;
301 if (boost::ends_with(canonical(testPathPrefix).generic_string(), "/test/libsolidity/semanticTests"))
302 insideSemanticTests = true;
303 if (insideSemanticTests && boost::starts_with(element.string(), "_"))
304 return false;
305 }
306 return true;
307}
308
309boost::unit_test::precondition::predicate_t nonEOF()
310{

Callers 2

registerTestsFunction · 0.85
matchesMethod · 0.85

Calls

no outgoing calls

Tested by 2

registerTestsFunction · 0.68
matchesMethod · 0.68