mirror of
https://github.com/hanzoai/telemetry.git
synced 2026-10-30 20:01:49 +00:00
37 lines
800 B
Go
37 lines
800 B
Go
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package pmetricotlp // import "go.opentelemetry.io/collector/pdata/pmetric/pmetricotlp"
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func FuzzRequestUnmarshalJSON(f *testing.F) {
|
|
f.Fuzz(func(_ *testing.T, data []byte) {
|
|
er := NewExportRequest()
|
|
_ = er.UnmarshalJSON(data)
|
|
})
|
|
}
|
|
|
|
func FuzzResponseUnmarshalJSON(f *testing.F) {
|
|
f.Fuzz(func(_ *testing.T, data []byte) {
|
|
er := NewExportResponse()
|
|
_ = er.UnmarshalJSON(data)
|
|
})
|
|
}
|
|
|
|
func FuzzRequestUnmarshalProto(f *testing.F) {
|
|
f.Fuzz(func(_ *testing.T, data []byte) {
|
|
er := NewExportRequest()
|
|
_ = er.UnmarshalJSON(data)
|
|
})
|
|
}
|
|
|
|
func FuzzResponseUnmarshalProto(f *testing.F) {
|
|
f.Fuzz(func(_ *testing.T, data []byte) {
|
|
er := NewExportResponse()
|
|
_ = er.UnmarshalJSON(data)
|
|
})
|
|
}
|