| 292 | std::unique_ptr<CommonOptions const> CommonOptions::m_singleton = nullptr; |
| 293 | |
| 294 | bool 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 | |
| 309 | boost::unit_test::precondition::predicate_t nonEOF() |
| 310 | { |
no outgoing calls