MCPcopy
hub / github.com/uber-go/zap / FuzzSafeAppendStringLike_bytes

Function FuzzSafeAppendStringLike_bytes

zapcore/json_encoder_impl_test.go:679–697  ·  view source on GitHub ↗
(f *testing.F)

Source from the content-addressed store, hash-verified

677}
678
679func FuzzSafeAppendStringLike_bytes(f *testing.F) {
680 for _, s := range _stringLikeCorpus {
681 f.Add([]byte(s))
682 }
683 f.Fuzz(func(t *testing.T, b []byte) {
684 if !utf8.Valid(b) {
685 t.Skip()
686 }
687
688 fuzzSafeAppendStringLike(t, string(b), func(buf *buffer.Buffer) {
689 safeAppendStringLike(
690 (*buffer.Buffer).AppendBytes,
691 utf8.DecodeRune,
692 buf,
693 b,
694 )
695 })
696 })
697}
698
699func FuzzSafeAppendStringLike_string(f *testing.F) {
700 for _, s := range _stringLikeCorpus {

Callers

nothing calls this directly

Calls 3

fuzzSafeAppendStringLikeFunction · 0.85
safeAppendStringLikeFunction · 0.85
AddMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…