add: new go-fuzz targets

Signed-off-by: Arjun <pkillarjun@protonmail.com>
This commit is contained in:
Arjun
2024-11-11 20:26:12 +05:30
parent 1f3e3045ad
commit 53c523444e
5 changed files with 67 additions and 0 deletions

View File

@@ -72,3 +72,9 @@ func TestAddingSpansWithNilMap(t *testing.T) {
// a panic shouldn't occur
tr.AddSpans(nil)
}
func FuzzNewIdentity(f *testing.F) {
f.Fuzz(func(t *testing.T, trace string) {
_, _ = NewIdentity(trace)
})
}