Some checks failed
Tests and linters / Tests (1.19) (pull_request) Successful in 17m39s
DCO action / DCO (pull_request) Failing after 17m51s
Tests and linters / Tests (1.20) (pull_request) Successful in 17m52s
Tests and linters / Tests with -race (pull_request) Successful in 18m17s
Tests and linters / Lint (pull_request) Failing after 22m20s
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
273 lines
5.7 KiB
Go
273 lines
5.7 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
|
|
}
|
|
func DoFuzzProtoSetExtendedACLRequest(data []byte) int {
|
|
msg := new(SetExtendedACLRequest)
|
|
if err := msg.UnmarshalProtobuf(data); err != nil {
|
|
return 0
|
|
}
|
|
_ = msg.MarshalProtobuf(nil)
|
|
return 1
|
|
}
|
|
func DoFuzzJSONSetExtendedACLRequest(data []byte) int {
|
|
msg := new(SetExtendedACLRequest)
|
|
if err := msg.UnmarshalJSON(data); err != nil {
|
|
return 0
|
|
}
|
|
_, err := msg.MarshalJSON()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return 1
|
|
}
|
|
func DoFuzzProtoSetExtendedACLResponse(data []byte) int {
|
|
msg := new(SetExtendedACLResponse)
|
|
if err := msg.UnmarshalProtobuf(data); err != nil {
|
|
return 0
|
|
}
|
|
_ = msg.MarshalProtobuf(nil)
|
|
return 1
|
|
}
|
|
func DoFuzzJSONSetExtendedACLResponse(data []byte) int {
|
|
msg := new(SetExtendedACLResponse)
|
|
if err := msg.UnmarshalJSON(data); err != nil {
|
|
return 0
|
|
}
|
|
_, err := msg.MarshalJSON()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return 1
|
|
}
|
|
func DoFuzzProtoGetExtendedACLRequest(data []byte) int {
|
|
msg := new(GetExtendedACLRequest)
|
|
if err := msg.UnmarshalProtobuf(data); err != nil {
|
|
return 0
|
|
}
|
|
_ = msg.MarshalProtobuf(nil)
|
|
return 1
|
|
}
|
|
func DoFuzzJSONGetExtendedACLRequest(data []byte) int {
|
|
msg := new(GetExtendedACLRequest)
|
|
if err := msg.UnmarshalJSON(data); err != nil {
|
|
return 0
|
|
}
|
|
_, err := msg.MarshalJSON()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return 1
|
|
}
|
|
func DoFuzzProtoGetExtendedACLResponse(data []byte) int {
|
|
msg := new(GetExtendedACLResponse)
|
|
if err := msg.UnmarshalProtobuf(data); err != nil {
|
|
return 0
|
|
}
|
|
_ = msg.MarshalProtobuf(nil)
|
|
return 1
|
|
}
|
|
func DoFuzzJSONGetExtendedACLResponse(data []byte) int {
|
|
msg := new(GetExtendedACLResponse)
|
|
if err := msg.UnmarshalJSON(data); err != nil {
|
|
return 0
|
|
}
|
|
_, err := msg.MarshalJSON()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return 1
|
|
}
|
|
func DoFuzzProtoAnnounceUsedSpaceRequest(data []byte) int {
|
|
msg := new(AnnounceUsedSpaceRequest)
|
|
if err := msg.UnmarshalProtobuf(data); err != nil {
|
|
return 0
|
|
}
|
|
_ = msg.MarshalProtobuf(nil)
|
|
return 1
|
|
}
|
|
func DoFuzzJSONAnnounceUsedSpaceRequest(data []byte) int {
|
|
msg := new(AnnounceUsedSpaceRequest)
|
|
if err := msg.UnmarshalJSON(data); err != nil {
|
|
return 0
|
|
}
|
|
_, err := msg.MarshalJSON()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return 1
|
|
}
|
|
func DoFuzzProtoAnnounceUsedSpaceResponse(data []byte) int {
|
|
msg := new(AnnounceUsedSpaceResponse)
|
|
if err := msg.UnmarshalProtobuf(data); err != nil {
|
|
return 0
|
|
}
|
|
_ = msg.MarshalProtobuf(nil)
|
|
return 1
|
|
}
|
|
func DoFuzzJSONAnnounceUsedSpaceResponse(data []byte) int {
|
|
msg := new(AnnounceUsedSpaceResponse)
|
|
if err := msg.UnmarshalJSON(data); err != nil {
|
|
return 0
|
|
}
|
|
_, err := msg.MarshalJSON()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return 1
|
|
}
|