MCPcopy Create free account
hub / github.com/go-json-experiment/json / TestTimeDurations

Function TestTimeDurations

v1/diff_test.go:1006–1038  ·  view source on GitHub ↗

In v1, there was no special support for time.Duration, which resulted in that type simply being treated as a signed integer. In v2, there is now first-class support for time.Duration, where the type is formatted and parsed using time.Duration.String and time.ParseDuration. Users of v2 can opt into

(t *testing.T)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

MarshalFunction · 0.92
UnmarshalFunction · 0.92
JoinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…