(t *testing.T)
| 93 | } |
| 94 | |
| 95 | func TestDateTimeSub(t *testing.T) { |
| 96 | t.Parallel() |
| 97 | |
| 98 | d1, _ := types.ParseDateTime("2024-01-01 10:00:00.123Z") |
| 99 | d2, _ := types.ParseDateTime("2024-01-01 10:30:00.123Z") |
| 100 | |
| 101 | result := d2.Sub(d1) |
| 102 | |
| 103 | if result.Minutes() != 30 { |
| 104 | t.Fatalf("Expected %v minutes diff, got %v", 30, result.Minutes()) |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | func TestDateTimeAddDate(t *testing.T) { |
| 109 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…