MCPcopy Create free account
hub / github.com/chipsalliance/Surelog / ContainsError

Function ContainsError

src/SourceCompile/PreprocessFile_test.cpp:33–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31namespace {
32
33bool ContainsError(const ErrorContainer &errors,
34 ErrorDefinition::ErrorType etype) {
35 return std::count_if(
36 errors.getErrors().begin(), errors.getErrors().end(),
37 [etype](const Error &e) { return e.getType() == etype; });
38}
39
40TEST(PreprocessTest, PreprocessWithoutPPTokens) {
41 PreprocessHarness harness;

Callers 1

TESTFunction · 0.85

Calls 1

getTypeMethod · 0.45

Tested by

no test coverage detected