MCPcopy
hub / github.com/tidwall/gjson / TestTimeResult

Function TestTimeResult

gjson_test.go:205–208  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

203}
204
205func TestTimeResult(t *testing.T) {
206 assert(t, Get(basicJSON, "created").String() ==
207 Get(basicJSON, "created").Time().Format(time.RFC3339Nano))
208}
209
210func TestParseAny(t *testing.T) {
211 assert(t, Parse("100").Float() == 100)

Callers

nothing calls this directly

Calls 4

assertFunction · 0.85
GetFunction · 0.85
TimeMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…