MCPcopy
hub / github.com/pocketbase/pocketbase / TestDateTimeIsZero

Function TestDateTimeIsZero

tools/types/datetime_test.go:281–291  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

279}
280
281func TestDateTimeIsZero(t *testing.T) {
282 dt0 := types.DateTime{}
283 if !dt0.IsZero() {
284 t.Fatalf("Expected zero datatime, got %v", dt0)
285 }
286
287 dt1 := types.NowDateTime()
288 if dt1.IsZero() {
289 t.Fatalf("Expected non-zero datatime, got %v", dt1)
290 }
291}
292
293func TestDateTimeString(t *testing.T) {
294 dt0 := types.DateTime{}

Callers

nothing calls this directly

Calls 2

IsZeroMethod · 0.95
NowDateTimeFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…