(t *testing.T)
| 1402 | } |
| 1403 | |
| 1404 | func TestTimeTruncInvalid(t *testing.T) { |
| 1405 | nanos := int64(1705314600000000000) |
| 1406 | expr := ast.ApplyFn{symbols.TimeTrunc, []ast.BaseTerm{ |
| 1407 | ast.Time(nanos), |
| 1408 | name("/year"), // year not supported by Truncate in this way |
| 1409 | }} |
| 1410 | _, err := EvalApplyFn(expr, ast.ConstSubstMap{}) |
| 1411 | if err == nil { |
| 1412 | t.Fatalf("EvalApplyFn(%v) expected error, got nil", expr) |
| 1413 | } |
| 1414 | } |
| 1415 | |
| 1416 | func TestDurationAdd(t *testing.T) { |
| 1417 | d1 := int64(3600000000000) // 1 hour |
nothing calls this directly
no test coverage detected