Lines Matching refs:line
34 inline void ParseDirPath(const std::string& line, Configuration& conf) { in ParseDirPath() argument
38 ASSERT_TRUE(std::regex_match(line, match, dir_regex)) << line; in ParseDirPath()
39 ASSERT_EQ(3u, match.size()) << line; in ParseDirPath()
69 const std::string& line) { in ParseNamespacePath() argument
84 ASSERT_NE(nullptr, target_path) << line; in ParseNamespacePath()
87 << line; in ParseNamespacePath()
95 Section& current_section, const std::string& line) { in ParseLinkList() argument
101 << "Link to " << namespace_to << " is already defined : " << line; in ParseLinkList()
103 << "Target namespace is not defined in section : " << line; in ParseLinkList()
115 const std::string& line) { in ParseLink() argument
118 ASSERT_EQ(3u, property_descs.size()) << line; in ParseLink()
121 << line; in ParseLink()
126 << " : " << line; in ParseLink()
133 << line; in ParseLink()
137 EXPECT_EQ("true", value) << line; in ParseLink()
147 const std::string& line) { in ParseNamespaceCommand() argument
150 << current_section.name << " : " << line; in ParseNamespaceCommand()
162 << namespace_name << " : " << line; in ParseNamespaceCommand()
166 EXPECT_EQ(1u, property_descs.size()) << line; in ParseNamespaceCommand()
167 EXPECT_TRUE(value == "true" || value == "false") << line; in ParseNamespaceCommand()
171 EXPECT_EQ(1u, property_descs.size()) << line; in ParseNamespaceCommand()
172 EXPECT_TRUE(value == "true" || value == "false") << line; in ParseNamespaceCommand()
177 property_descs, is_additional_property, value, current_namespace, line); in ParseNamespaceCommand()
181 property_descs, value, current_namespace, current_section, line); in ParseNamespaceCommand()
189 line); in ParseNamespaceCommand()
191 EXPECT_EQ(1u, property_descs.size()) << line; in ParseNamespaceCommand()
194 EXPECT_TRUE(false) << "Failed to parse line : " << line; in ParseNamespaceCommand()
211 for (std::string line; std::getline(configuration_stream, line);) { in ParseConfiguration() local
213 if (line.empty()) { in ParseConfiguration()
217 if (std::regex_match(line, match, section_name_regex)) { in ParseConfiguration()
219 ASSERT_EQ(2u, match.size()) << line; in ParseConfiguration()
221 ASSERT_TRUE(MapContainsKey(conf.sections, section_name)) << line; in ParseConfiguration()
228 ParseDirPath(line, conf); in ParseConfiguration()
230 if (std::regex_match(line, match, additional_namespaces_regex)) { in ParseConfiguration()
233 EXPECT_TRUE(std::regex_match(line, match, namespace_base_regex)) << line; in ParseConfiguration()
234 ASSERT_EQ(5u, match.size()) << line; in ParseConfiguration()
244 line); in ParseConfiguration()