Tests whether the returned TimestampValue is valid. We use this function for tests where the expected value is unknown, e.g., now().
| 1401 | // Tests whether the returned TimestampValue is valid. |
| 1402 | // We use this function for tests where the expected value is unknown, e.g., now(). |
| 1403 | void ExprTest::TestValidTimestampValue(const string& expr) { |
| 1404 | EXPECT_TRUE( |
| 1405 | ConvertValue<TimestampValue>(GetValue(expr, ColumnType(TYPE_TIMESTAMP))).HasDate()); |
| 1406 | } |
| 1407 | |
| 1408 | // We can't put this into TestValue() because GTest can't resolve |
| 1409 | // the ambiguity in DateValue::operator==, even with the appropriate casts. |
nothing calls this directly
no test coverage detected