| 30 | using ::testing::Pair; |
| 31 | |
| 32 | TEST(NamespaceGeneratorTest, EmptyContainer) { |
| 33 | ExpressionContainer container; |
| 34 | ASSERT_OK_AND_ASSIGN(auto generator, NamespaceGenerator::Create(container)); |
| 35 | std::vector<std::string> candidates; |
| 36 | generator.GenerateCandidates("foo", [&](absl::string_view candidate) { |
| 37 | candidates.push_back(std::string(candidate)); |
| 38 | return true; |
| 39 | }); |
| 40 | EXPECT_THAT(candidates, ElementsAre("foo")); |
| 41 | } |
| 42 | |
| 43 | TEST(NamespaceGeneratorTest, MultipleSegments) { |
| 44 | ExpressionContainer container; |
nothing calls this directly
no test coverage detected