Lines Matching refs:pathName
50 void writeConfigFile(const fs::path& pathName, const std::string& contents)
52 std::ofstream file{pathName};
56 void writeConfigFile(const fs::path& pathName, const json& contents)
58 std::ofstream file{pathName};
271 fs::path pathName{configFile.getPath()};
272 writeConfigFile(pathName, configFileContents);
274 auto chassis = parse(pathName);
287 fs::path pathName{"/tmp/non_existent_file"};
288 EXPECT_THROW(parse(pathName), ConfigFileParserError);
306 fs::path pathName{configFile.getPath()};
307 writeConfigFile(pathName, configFileContents);
309 chmod(pathName.c_str(), 0222);
310 EXPECT_THROW(parse(pathName), ConfigFileParserError);
318 fs::path pathName{configFile.getPath()};
319 writeConfigFile(pathName, configFileContents);
321 EXPECT_THROW(parse(pathName), ConfigFileParserError);
329 fs::path pathName{configFile.getPath()};
330 writeConfigFile(pathName, configFileContents);
332 EXPECT_THROW(parse(pathName), ConfigFileParserError);