All checks were successful
* Add plugin option for protogen in Makefile * Fix the generator for the plugin in util/protogen * Erase convertable types, move helpful methods to gRPC protobufs * Erase helpers for convertations * Generate StableMarshlal/StableSize for protobufs by the protoc plugin Signed-off-by: Airat Arifullin a.arifullin@yadro.com
19 lines
761 B
Go
19 lines
761 B
Go
package accounting_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
accountingtest "git.frostfs.info/TrueCloudLab/aarifullin/v2/accounting/test"
|
|
messagetest "git.frostfs.info/TrueCloudLab/aarifullin/v2/rpc/message/test"
|
|
"google.golang.org/protobuf/proto"
|
|
)
|
|
|
|
func TestMessage(t *testing.T) {
|
|
messagetest.TestRPCMessage(t,
|
|
func(empty bool) proto.Message { return accountingtest.GenerateDecimal(empty) },
|
|
func(empty bool) proto.Message { return accountingtest.GenerateBalanceRequestBody(empty) },
|
|
func(empty bool) proto.Message { return accountingtest.GenerateBalanceRequest(empty) },
|
|
func(empty bool) proto.Message { return accountingtest.GenerateBalanceResponseBody(empty) },
|
|
func(empty bool) proto.Message { return accountingtest.GenerateBalanceResponse(empty) },
|
|
)
|
|
}
|