Aleksey Savchuk
c11f50efec
All checks were successful
DCO action / DCO (pull_request) Successful in 45s
Tests and linters / Tests (1.22) (pull_request) Successful in 1m5s
Tests and linters / Tests (1.23) (pull_request) Successful in 1m6s
Tests and linters / Lint (pull_request) Successful in 1m12s
Tests and linters / Tests with -race (pull_request) Successful in 1m20s
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
159 lines
3.2 KiB
Go
159 lines
3.2 KiB
Go
//go:build gofuzz
|
|
// +build gofuzz
|
|
|
|
// Code generated by protoc-gen-go-frostfs. DO NOT EDIT.
|
|
|
|
package container
|
|
|
|
func DoFuzzProtoPutRequest(data []byte) int {
|
|
msg := new(PutRequest)
|
|
if err := msg.UnmarshalProtobuf(data); err != nil {
|
|
return 0
|
|
}
|
|
_ = msg.MarshalProtobuf(nil)
|
|
return 1
|
|
}
|
|
func DoFuzzJSONPutRequest(data []byte) int {
|
|
msg := new(PutRequest)
|
|
if err := msg.UnmarshalJSON(data); err != nil {
|
|
return 0
|
|
}
|
|
_, err := msg.MarshalJSON()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return 1
|
|
}
|
|
func DoFuzzProtoPutResponse(data []byte) int {
|
|
msg := new(PutResponse)
|
|
if err := msg.UnmarshalProtobuf(data); err != nil {
|
|
return 0
|
|
}
|
|
_ = msg.MarshalProtobuf(nil)
|
|
return 1
|
|
}
|
|
func DoFuzzJSONPutResponse(data []byte) int {
|
|
msg := new(PutResponse)
|
|
if err := msg.UnmarshalJSON(data); err != nil {
|
|
return 0
|
|
}
|
|
_, err := msg.MarshalJSON()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return 1
|
|
}
|
|
func DoFuzzProtoDeleteRequest(data []byte) int {
|
|
msg := new(DeleteRequest)
|
|
if err := msg.UnmarshalProtobuf(data); err != nil {
|
|
return 0
|
|
}
|
|
_ = msg.MarshalProtobuf(nil)
|
|
return 1
|
|
}
|
|
func DoFuzzJSONDeleteRequest(data []byte) int {
|
|
msg := new(DeleteRequest)
|
|
if err := msg.UnmarshalJSON(data); err != nil {
|
|
return 0
|
|
}
|
|
_, err := msg.MarshalJSON()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return 1
|
|
}
|
|
func DoFuzzProtoDeleteResponse(data []byte) int {
|
|
msg := new(DeleteResponse)
|
|
if err := msg.UnmarshalProtobuf(data); err != nil {
|
|
return 0
|
|
}
|
|
_ = msg.MarshalProtobuf(nil)
|
|
return 1
|
|
}
|
|
func DoFuzzJSONDeleteResponse(data []byte) int {
|
|
msg := new(DeleteResponse)
|
|
if err := msg.UnmarshalJSON(data); err != nil {
|
|
return 0
|
|
}
|
|
_, err := msg.MarshalJSON()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return 1
|
|
}
|
|
func DoFuzzProtoGetRequest(data []byte) int {
|
|
msg := new(GetRequest)
|
|
if err := msg.UnmarshalProtobuf(data); err != nil {
|
|
return 0
|
|
}
|
|
_ = msg.MarshalProtobuf(nil)
|
|
return 1
|
|
}
|
|
func DoFuzzJSONGetRequest(data []byte) int {
|
|
msg := new(GetRequest)
|
|
if err := msg.UnmarshalJSON(data); err != nil {
|
|
return 0
|
|
}
|
|
_, err := msg.MarshalJSON()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return 1
|
|
}
|
|
func DoFuzzProtoGetResponse(data []byte) int {
|
|
msg := new(GetResponse)
|
|
if err := msg.UnmarshalProtobuf(data); err != nil {
|
|
return 0
|
|
}
|
|
_ = msg.MarshalProtobuf(nil)
|
|
return 1
|
|
}
|
|
func DoFuzzJSONGetResponse(data []byte) int {
|
|
msg := new(GetResponse)
|
|
if err := msg.UnmarshalJSON(data); err != nil {
|
|
return 0
|
|
}
|
|
_, err := msg.MarshalJSON()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return 1
|
|
}
|
|
func DoFuzzProtoListRequest(data []byte) int {
|
|
msg := new(ListRequest)
|
|
if err := msg.UnmarshalProtobuf(data); err != nil {
|
|
return 0
|
|
}
|
|
_ = msg.MarshalProtobuf(nil)
|
|
return 1
|
|
}
|
|
func DoFuzzJSONListRequest(data []byte) int {
|
|
msg := new(ListRequest)
|
|
if err := msg.UnmarshalJSON(data); err != nil {
|
|
return 0
|
|
}
|
|
_, err := msg.MarshalJSON()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return 1
|
|
}
|
|
func DoFuzzProtoListResponse(data []byte) int {
|
|
msg := new(ListResponse)
|
|
if err := msg.UnmarshalProtobuf(data); err != nil {
|
|
return 0
|
|
}
|
|
_ = msg.MarshalProtobuf(nil)
|
|
return 1
|
|
}
|
|
func DoFuzzJSONListResponse(data []byte) int {
|
|
msg := new(ListResponse)
|
|
if err := msg.UnmarshalJSON(data); err != nil {
|
|
return 0
|
|
}
|
|
_, err := msg.MarshalJSON()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return 1
|
|
}
|