Helper for testing invalid unsigned integer arithmetic operations.
| 328 | |
| 329 | // Helper for testing invalid unsigned integer arithmetic operations. |
| 330 | void TestArithmeticalErrorUint64(absl::string_view operation, uint64_t v1, |
| 331 | uint64_t v2, absl::StatusCode code) { |
| 332 | CelValue result_value; |
| 333 | ASSERT_NO_FATAL_FAILURE(PerformRun( |
| 334 | operation, {}, {CelValue::CreateUint64(v1), CelValue::CreateUint64(v2)}, |
| 335 | &result_value)); |
| 336 | ASSERT_EQ(result_value.IsError(), true); |
| 337 | ASSERT_EQ(result_value.ErrorOrDie()->code(), code) << operation; |
| 338 | } |
| 339 | |
| 340 | // Helper method to test arithmetical operations for Double |
| 341 | void TestArithmeticalOperationDouble(absl::string_view operation, double v1, |
nothing calls this directly
no test coverage detected