(t *testing.T)
| 291 | } |
| 292 | |
| 293 | func TestDateTimeString(t *testing.T) { |
| 294 | dt0 := types.DateTime{} |
| 295 | if dt0.String() != "" { |
| 296 | t.Fatalf("Expected empty string for zer datetime, got %q", dt0.String()) |
| 297 | } |
| 298 | |
| 299 | expected := "2022-01-01 11:23:45.678Z" |
| 300 | dt1, _ := types.ParseDateTime(expected) |
| 301 | if dt1.String() != expected { |
| 302 | t.Fatalf("Expected %q, got %v", expected, dt1) |
| 303 | } |
| 304 | } |
| 305 | |
| 306 | func TestDateTimeMarshalJSON(t *testing.T) { |
| 307 | scenarios := []struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…