| 1291 | |
| 1292 | struct { |
| 1293 | void operator()(Expression expr, Expression expected) { |
| 1294 | ASSERT_OK_AND_ASSIGN(expr, expr.Bind(*kBoringSchema)); |
| 1295 | ASSERT_OK_AND_ASSIGN(expected, expected.Bind(*kBoringSchema)); |
| 1296 | |
| 1297 | ASSERT_OK_AND_ASSIGN(auto folded, FoldConstants(expr)); |
| 1298 | |
| 1299 | EXPECT_EQ(folded, expected); |
| 1300 | ExpectIdenticalIfUnchanged(folded, expr); |
| 1301 | } |
| 1302 | } ExpectFoldsTo; |
| 1303 | |
| 1304 | TEST(Expression, FoldConstants) { |
nothing calls this directly
no test coverage detected