Evgenii Stratonikov
7f903df1e1
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>
45 lines
920 B
Go
45 lines
920 B
Go
//go:build gofuzz
|
|
// +build gofuzz
|
|
|
|
// Code generated by protoc-gen-go-frostfs. DO NOT EDIT.
|
|
|
|
package accounting
|
|
|
|
func DoFuzzProtoBalanceRequest(data []byte) int {
|
|
msg := new(BalanceRequest)
|
|
if err := msg.UnmarshalProtobuf(data); err != nil {
|
|
return 0
|
|
}
|
|
_ = msg.MarshalProtobuf(nil)
|
|
return 1
|
|
}
|
|
func DoFuzzJSONBalanceRequest(data []byte) int {
|
|
msg := new(BalanceRequest)
|
|
if err := msg.UnmarshalJSON(data); err != nil {
|
|
return 0
|
|
}
|
|
_, err := msg.MarshalJSON()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return 1
|
|
}
|
|
func DoFuzzProtoBalanceResponse(data []byte) int {
|
|
msg := new(BalanceResponse)
|
|
if err := msg.UnmarshalProtobuf(data); err != nil {
|
|
return 0
|
|
}
|
|
_ = msg.MarshalProtobuf(nil)
|
|
return 1
|
|
}
|
|
func DoFuzzJSONBalanceResponse(data []byte) int {
|
|
msg := new(BalanceResponse)
|
|
if err := msg.UnmarshalJSON(data); err != nil {
|
|
return 0
|
|
}
|
|
_, err := msg.MarshalJSON()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return 1
|
|
}
|