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
20 lines
426 B
Go
20 lines
426 B
Go
package locktest
|
|
|
|
import (
|
|
lock "git.frostfs.info/TrueCloudLab/aarifullin/v2/lock/grpc"
|
|
refs "git.frostfs.info/TrueCloudLab/aarifullin/v2/refs/grpc"
|
|
refstest "git.frostfs.info/TrueCloudLab/aarifullin/v2/refs/test"
|
|
)
|
|
|
|
func GenerateLock(empty bool) *lock.Lock {
|
|
m := new(lock.Lock)
|
|
|
|
if !empty {
|
|
m.SetMembers([]*refs.ObjectID{
|
|
refstest.GenerateObjectID(false),
|
|
refstest.GenerateObjectID(false),
|
|
})
|
|
}
|
|
|
|
return m
|
|
}
|