| 34 | } |
| 35 | |
| 36 | TEST(RegisterContainerFunctions, RegistersSizeFunctions) { |
| 37 | FunctionRegistry registry; |
| 38 | RuntimeOptions options; |
| 39 | |
| 40 | ASSERT_OK(RegisterContainerFunctions(registry, options)); |
| 41 | |
| 42 | EXPECT_THAT( |
| 43 | registry.FindStaticOverloads(builtin::kSize, false, {Kind::kAny}), |
| 44 | UnorderedElementsAre(MatchesDescriptor(builtin::kSize, false, |
| 45 | std::vector<Kind>{Kind::kList}), |
| 46 | MatchesDescriptor(builtin::kSize, false, |
| 47 | std::vector<Kind>{Kind::kMap}))); |
| 48 | EXPECT_THAT( |
| 49 | registry.FindStaticOverloads(builtin::kSize, true, {Kind::kAny}), |
| 50 | UnorderedElementsAre(MatchesDescriptor(builtin::kSize, true, |
| 51 | std::vector<Kind>{Kind::kList}), |
| 52 | MatchesDescriptor(builtin::kSize, true, |
| 53 | std::vector<Kind>{Kind::kMap}))); |
| 54 | } |
| 55 | |
| 56 | TEST(RegisterContainerFunctions, RegisterListConcatEnabled) { |
| 57 | FunctionRegistry registry; |
nothing calls this directly
no test coverage detected