Some checks failed
Tests and linters / Tests (1.19) (pull_request) Successful in 33s
Tests and linters / Lint (pull_request) Failing after 39s
DCO action / DCO (pull_request) Failing after 45s
Tests and linters / Tests (1.20) (pull_request) Successful in 52s
Tests and linters / Tests with -race (pull_request) Successful in 1m5s
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
121 lines
2.6 KiB
Go
121 lines
2.6 KiB
Go
//go:build gofuzz
|
|
// +build gofuzz
|
|
|
|
// Code generated by protoc-gen-go-frostfs. DO NOT EDIT.
|
|
|
|
package netmap
|
|
|
|
func DoFuzzProtoLocalNodeInfoRequest(data []byte) int {
|
|
msg := new(LocalNodeInfoRequest)
|
|
if err := msg.UnmarshalProtobuf(data); err != nil {
|
|
return 0
|
|
}
|
|
_ = msg.MarshalProtobuf(nil)
|
|
return 1
|
|
}
|
|
func DoFuzzJSONLocalNodeInfoRequest(data []byte) int {
|
|
msg := new(LocalNodeInfoRequest)
|
|
if err := msg.UnmarshalJSON(data); err != nil {
|
|
return 0
|
|
}
|
|
_, err := msg.MarshalJSON()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return 1
|
|
}
|
|
func DoFuzzProtoLocalNodeInfoResponse(data []byte) int {
|
|
msg := new(LocalNodeInfoResponse)
|
|
if err := msg.UnmarshalProtobuf(data); err != nil {
|
|
return 0
|
|
}
|
|
_ = msg.MarshalProtobuf(nil)
|
|
return 1
|
|
}
|
|
func DoFuzzJSONLocalNodeInfoResponse(data []byte) int {
|
|
msg := new(LocalNodeInfoResponse)
|
|
if err := msg.UnmarshalJSON(data); err != nil {
|
|
return 0
|
|
}
|
|
_, err := msg.MarshalJSON()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return 1
|
|
}
|
|
func DoFuzzProtoNetworkInfoRequest(data []byte) int {
|
|
msg := new(NetworkInfoRequest)
|
|
if err := msg.UnmarshalProtobuf(data); err != nil {
|
|
return 0
|
|
}
|
|
_ = msg.MarshalProtobuf(nil)
|
|
return 1
|
|
}
|
|
func DoFuzzJSONNetworkInfoRequest(data []byte) int {
|
|
msg := new(NetworkInfoRequest)
|
|
if err := msg.UnmarshalJSON(data); err != nil {
|
|
return 0
|
|
}
|
|
_, err := msg.MarshalJSON()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return 1
|
|
}
|
|
func DoFuzzProtoNetworkInfoResponse(data []byte) int {
|
|
msg := new(NetworkInfoResponse)
|
|
if err := msg.UnmarshalProtobuf(data); err != nil {
|
|
return 0
|
|
}
|
|
_ = msg.MarshalProtobuf(nil)
|
|
return 1
|
|
}
|
|
func DoFuzzJSONNetworkInfoResponse(data []byte) int {
|
|
msg := new(NetworkInfoResponse)
|
|
if err := msg.UnmarshalJSON(data); err != nil {
|
|
return 0
|
|
}
|
|
_, err := msg.MarshalJSON()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return 1
|
|
}
|
|
func DoFuzzProtoNetmapSnapshotRequest(data []byte) int {
|
|
msg := new(NetmapSnapshotRequest)
|
|
if err := msg.UnmarshalProtobuf(data); err != nil {
|
|
return 0
|
|
}
|
|
_ = msg.MarshalProtobuf(nil)
|
|
return 1
|
|
}
|
|
func DoFuzzJSONNetmapSnapshotRequest(data []byte) int {
|
|
msg := new(NetmapSnapshotRequest)
|
|
if err := msg.UnmarshalJSON(data); err != nil {
|
|
return 0
|
|
}
|
|
_, err := msg.MarshalJSON()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return 1
|
|
}
|
|
func DoFuzzProtoNetmapSnapshotResponse(data []byte) int {
|
|
msg := new(NetmapSnapshotResponse)
|
|
if err := msg.UnmarshalProtobuf(data); err != nil {
|
|
return 0
|
|
}
|
|
_ = msg.MarshalProtobuf(nil)
|
|
return 1
|
|
}
|
|
func DoFuzzJSONNetmapSnapshotResponse(data []byte) int {
|
|
msg := new(NetmapSnapshotResponse)
|
|
if err := msg.UnmarshalJSON(data); err != nil {
|
|
return 0
|
|
}
|
|
_, err := msg.MarshalJSON()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return 1
|
|
}
|