forked from TrueCloudLab/frostfs-api-go
Airat Arifullin
bc16a32c24
* 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
15 lines
404 B
Go
15 lines
404 B
Go
package tombstone_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
messagetest "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/message/test"
|
|
tombstonetest "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/tombstone/test"
|
|
"google.golang.org/protobuf/proto"
|
|
)
|
|
|
|
func TestMessageConvert(t *testing.T) {
|
|
messagetest.TestRPCMessage(t,
|
|
func(empty bool) proto.Message { return tombstonetest.GenerateTombstone(empty) },
|
|
)
|
|
}
|