MCPcopy Create free account
hub / github.com/pquerna/ffjson / fuzzTimeSlice

Function fuzzTimeSlice

tests/fuzz_test.go:130–140  ·  view source on GitHub ↗
(t *[]time.Time, c fuzz.Continue)

Source from the content-addressed store, hash-verified

128}
129
130func fuzzTimeSlice(t *[]time.Time, c fuzz.Continue) {
131 var i uint64
132 rv := make([]time.Time, 0)
133 count := c.RandUint64() % 50
134 for i = 0; i < count; i++ {
135 var tmp time.Time
136 fuzzTime(&tmp, c)
137 rv = append(rv, tmp)
138 }
139 *t = rv
140}
141
142// Test 1000 iterations
143func TestFuzzCycle(t *testing.T) {

Callers

nothing calls this directly

Calls 1

fuzzTimeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…