(t *testing.T)
| 1181 | } |
| 1182 | |
| 1183 | func TestTimeFormatInvalid(t *testing.T) { |
| 1184 | nanos := int64(1705314600000000000) // 2024-01-15 10:30:00 UTC |
| 1185 | |
| 1186 | expr := ast.ApplyFn{symbols.TimeFormat, []ast.BaseTerm{ |
| 1187 | ast.Time(nanos), |
| 1188 | name("/invalid"), |
| 1189 | }} |
| 1190 | _, err := EvalApplyFn(expr, ast.ConstSubstMap{}) |
| 1191 | if err == nil { |
| 1192 | t.Fatalf("EvalApplyFn(%v) expected error, got nil", expr) |
| 1193 | } |
| 1194 | } |
| 1195 | |
| 1196 | func TestTimeParse(t *testing.T) { |
| 1197 | tests := []struct { |
nothing calls this directly
no test coverage detected