| 157 | }; |
| 158 | |
| 159 | TEST_P(ContainerAccessStepUniformityTest, TestListIndexAccess) { |
| 160 | ContainerBackedListImpl cel_list({CelValue::CreateInt64(1), |
| 161 | CelValue::CreateInt64(2), |
| 162 | CelValue::CreateInt64(3)}); |
| 163 | |
| 164 | CelValue result = EvaluateAttribute(CelValue::CreateList(&cel_list), |
| 165 | CelValue::CreateInt64(1), |
| 166 | receiver_style(), enable_unknown()); |
| 167 | |
| 168 | ASSERT_TRUE(result.IsInt64()); |
| 169 | ASSERT_EQ(result.Int64OrDie(), 2); |
| 170 | } |
| 171 | |
| 172 | TEST_P(ContainerAccessStepUniformityTest, TestListIndexAccessOutOfBounds) { |
| 173 | ContainerBackedListImpl cel_list({CelValue::CreateInt64(1), |
nothing calls this directly
no test coverage detected