MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / library

Method library

test/testcmdlineparser.cpp:2958–2964  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2956#endif
2957
2958 void library() {
2959 REDIRECT;
2960 const char * const argv[] = {"cppcheck", "--library=posix", "file.cpp"};
2961 ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parseFromArgs(argv));
2962 ASSERT_EQUALS(1, settings->libraries.size());
2963 ASSERT_EQUALS("posix", *settings->libraries.cbegin());
2964 }
2965
2966 void libraryMissing() {
2967 REDIRECT;

Callers 15

TestValueFlowClass · 0.80
TestSymbolDatabaseClass · 0.80
operatorEqSTLMethod · 0.80
uninitVar37Method · 0.80
uninitVarArray10Method · 0.80
varid_in_class25Method · 0.80
exprid14Method · 0.80
TestTokenizerClass · 0.80
TestConditionClass · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected