Lines Matching refs:section
37 inline void ValidateAllNamespacesAreVisible(const Section& section) { in ValidateAllNamespacesAreVisible() argument
39 for (auto& [_, ns] : section.namespaces) { in ValidateAllNamespacesAreVisible()
45 for (auto& [_, ns] : section.namespaces) { in ValidateAllNamespacesAreVisible()
47 << "Namespace " << ns.name << " is not visible from section " << section.name; in ValidateAllNamespacesAreVisible()
59 inline void ValidateSection(const Section& section) { in ValidateSection() argument
60 EXPECT_FALSE(section.name.empty()) << "Section name should not be empty"; in ValidateSection()
61 EXPECT_NE(0u, section.namespaces.size()) in ValidateSection()
62 << "Section " << section.name << " should contain at least one namespace"; in ValidateSection()
63 EXPECT_NE(0u, section.dirs.size()) in ValidateSection()
64 << "Section " << section.name << "does not contain any directory as executable path"; in ValidateSection()
65 EXPECT_TRUE(MapContainsKey(section.namespaces, std::string("default"))) in ValidateSection()
66 << "Section " << section.name << " should contain namespace named 'default'"; in ValidateSection()
68 for (auto& [_, target_namespace] : section.namespaces) { in ValidateSection()
69 ValidateNamespace(target_namespace, section); in ValidateSection()
72 ValidateAllNamespacesAreVisible(section); in ValidateSection()
77 for (auto& [_, section] : conf.sections) { in ValidateConfiguration()
78 ValidateSection(section); in ValidateConfiguration()