MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / checkDeclFileReconstruction

Function checkDeclFileReconstruction

test/DefBlockSyntaxParser.cpp:366–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364}
365
366void checkDeclFileReconstruction(const std::string& declFile)
367{
368 auto originalText = algorithm::loadTextFromVfsFile(declFile);
369 auto syntaxTree = parseText(originalText);
370
371 auto reconstructedText = syntaxTree->getString();
372 EXPECT_EQ(reconstructedText, originalText) << "Parsed file " << declFile << " couldn't be reconstructed";
373}
374// Attempt to parse a whole file and reconstruct it from the syntax tree
375TEST_F(DefBlockSyntaxParserTest, ReconstructFileFromSyntaxTree)
376{

Callers 1

TEST_FFunction · 0.85

Calls 3

loadTextFromVfsFileFunction · 0.85
parseTextFunction · 0.85
getStringMethod · 0.45

Tested by

no test coverage detected