forked from TrueCloudLab/frostfs-api-go
* 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
21 lines
852 B
Go
21 lines
852 B
Go
package refs_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
refstest "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/refs/test"
|
|
messagetest "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/message/test"
|
|
"google.golang.org/protobuf/proto"
|
|
)
|
|
|
|
func TestMessageConvert(t *testing.T) {
|
|
messagetest.TestRPCMessage(t,
|
|
func(empty bool) proto.Message { return refstest.GenerateOwnerID(empty) },
|
|
func(empty bool) proto.Message { return refstest.GenerateObjectID(empty) },
|
|
func(empty bool) proto.Message { return refstest.GenerateContainerID(empty) },
|
|
func(empty bool) proto.Message { return refstest.GenerateAddress(empty) },
|
|
func(empty bool) proto.Message { return refstest.GenerateChecksum(empty) },
|
|
func(empty bool) proto.Message { return refstest.GenerateSignature(empty) },
|
|
func(empty bool) proto.Message { return refstest.GenerateVersion(empty) },
|
|
)
|
|
}
|