| 48 | } |
| 49 | |
| 50 | TEST(ShadowableValueStepTest, TestEvaluateNoShadowing) { |
| 51 | absl_nonnull std::shared_ptr<const RuntimeEnv> env = NewTestingRuntimeEnv(); |
| 52 | std::string type_name = "google.api.expr.runtime.TestMessage"; |
| 53 | |
| 54 | Activation activation; |
| 55 | Arena arena; |
| 56 | |
| 57 | auto type_value = CreateTypeValueFromView(&arena, type_name); |
| 58 | auto status = |
| 59 | RunShadowableExpression(env, type_name, type_value, activation, &arena); |
| 60 | ASSERT_OK(status); |
| 61 | |
| 62 | auto value = status.value(); |
| 63 | ASSERT_TRUE(value.IsCelType()); |
| 64 | EXPECT_THAT(value.CelTypeOrDie().value(), Eq(type_name)); |
| 65 | } |
| 66 | |
| 67 | TEST(ShadowableValueStepTest, TestEvaluateShadowedIdentifier) { |
| 68 | absl_nonnull std::shared_ptr<const RuntimeEnv> env = NewTestingRuntimeEnv(); |
nothing calls this directly
no test coverage detected