frostfs-sdk-go/api/refs/message_test.go
Pavel Pogodaev 6693b47366
Some checks failed
DCO / DCO (pull_request) Successful in 54s
Tests and linters / Tests (pull_request) Failing after 1m12s
Tests and linters / Lint (pull_request) Successful in 1m32s
[#276] Merge repo with frostfs-api-go
Signed-off-by: Pavel Pogodaev <p.pogodaev@yadro.com>
2024-10-08 14:53:40 +03:00

21 lines
896 B
Go

package refs_test
import (
"testing"
refstest "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/api/refs/test"
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/api/rpc/message"
messagetest "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/api/rpc/message/test"
)
func TestMessageConvert(t *testing.T) {
messagetest.TestRPCMessage(t,
func(empty bool) message.Message { return refstest.GenerateOwnerID(empty) },
func(empty bool) message.Message { return refstest.GenerateObjectID(empty) },
func(empty bool) message.Message { return refstest.GenerateContainerID(empty) },
func(empty bool) message.Message { return refstest.GenerateAddress(empty) },
func(empty bool) message.Message { return refstest.GenerateChecksum(empty) },
func(empty bool) message.Message { return refstest.GenerateSignature(empty) },
func(empty bool) message.Message { return refstest.GenerateVersion(empty) },
)
}