MCPcopy Create free account
hub / github.com/OpenCppCoverage/OpenCppCoverage / ParseConfigFile

Function ParseConfigFile

CppCoverage/OptionsParser.cpp:147–158  ·  view source on GitHub ↗

-------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

145
146 //-------------------------------------------------------------------------
147 void ParseConfigFile(const ProgramOptions& programOptions,
148 ProgramOptionsVariablesMap& variablesMap,
149 const std::string& path)
150 {
151 std::ifstream ifs(path.c_str());
152
153 if (!ifs)
154 throw Plugin::OptionsParserException("Cannot open config file: " +
155 path);
156
157 programOptions.FillVariableMap(ifs, variablesMap.GetVariablesMap());
158 }
159
160 //---------------------------------------------------------------------
161 void AddInputCoverages(const ProgramOptionsVariablesMap& variablesMap,

Callers 1

ParseMethod · 0.85

Calls 2

FillVariableMapMethod · 0.80

Tested by

no test coverage detected