Debian Codegraph @

pdata/pmetric/pmetricotlp/fuzz_test.go

raw symbols SCIP
1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
3
4 package pmetricotlp // import "go.opentelemetry.io/collector/pdata/pmetric/pmetricotlp"
5
6 import (
7 "testing"
8 )
9
10 func FuzzRequestUnmarshalJSON(f *testing.F) {
11 f.Fuzz(func(_ *testing.T, data []byte) {
12 er := NewExportRequest()
13 _ = er.UnmarshalJSON(data)
14 })
15 }
16
17 func FuzzResponseUnmarshalJSON(f *testing.F) {
18 f.Fuzz(func(_ *testing.T, data []byte) {
19 er := NewExportResponse()
20 _ = er.UnmarshalJSON(data)
21 })
22 }
23
24 func FuzzRequestUnmarshalProto(f *testing.F) {
25 f.Fuzz(func(_ *testing.T, data []byte) {
26 er := NewExportRequest()
27 _ = er.UnmarshalJSON(data)
28 })
29 }
30
31 func FuzzResponseUnmarshalProto(f *testing.F) {
32 f.Fuzz(func(_ *testing.T, data []byte) {
33 er := NewExportResponse()
34 _ = er.UnmarshalJSON(data)
35 })
36 }