Some checks failed
Tests and linters / Lint (pull_request) Failing after 24s
DCO action / DCO (pull_request) Failing after 38s
Tests and linters / Tests (1.19) (pull_request) Successful in 49s
Tests and linters / Tests (1.20) (pull_request) Successful in 49s
Tests and linters / Tests with -race (pull_request) Successful in 1m11s
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
45 lines
909 B
Go
45 lines
909 B
Go
//go:build gofuzz
|
|
// +build gofuzz
|
|
|
|
// Code generated by protoc-gen-go-frostfs. DO NOT EDIT.
|
|
|
|
package session
|
|
|
|
func DoFuzzProtoCreateRequest(data []byte) int {
|
|
msg := new(CreateRequest)
|
|
if err := msg.UnmarshalProtobuf(data); err != nil {
|
|
return 0
|
|
}
|
|
_ = msg.MarshalProtobuf(nil)
|
|
return 1
|
|
}
|
|
func DoFuzzJSONCreateRequest(data []byte) int {
|
|
msg := new(CreateRequest)
|
|
if err := msg.UnmarshalJSON(data); err != nil {
|
|
return 0
|
|
}
|
|
_, err := msg.MarshalJSON()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return 1
|
|
}
|
|
func DoFuzzProtoCreateResponse(data []byte) int {
|
|
msg := new(CreateResponse)
|
|
if err := msg.UnmarshalProtobuf(data); err != nil {
|
|
return 0
|
|
}
|
|
_ = msg.MarshalProtobuf(nil)
|
|
return 1
|
|
}
|
|
func DoFuzzJSONCreateResponse(data []byte) int {
|
|
msg := new(CreateResponse)
|
|
if err := msg.UnmarshalJSON(data); err != nil {
|
|
return 0
|
|
}
|
|
_, err := msg.MarshalJSON()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return 1
|
|
}
|