| 476 | } |
| 477 | |
| 478 | inline void expectDeclContains(decl::Type type, const std::string& declName, const std::string& expectedContents) |
| 479 | { |
| 480 | auto decl = GlobalDeclarationManager().findDeclaration(type, declName); |
| 481 | EXPECT_TRUE(decl) << declName << " should be present"; |
| 482 | EXPECT_NE(decl->getBlockSyntax().contents.find(expectedContents), std::string::npos) |
| 483 | << declName << " should contain the expected contents " << expectedContents; |
| 484 | } |
| 485 | |
| 486 | // Decl must still be present, but not contain the given string |
| 487 | inline void expectDeclDoesNotContain(decl::Type type, const std::string& declName, const std::string& contents) |
no test coverage detected