2021-11-06 10:38:52 +00:00
|
|
|
package status_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2023-03-07 10:38:56 +00:00
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/message"
|
|
|
|
messagetest "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/message/test"
|
|
|
|
statustest "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/status/test"
|
2021-11-06 10:38:52 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestMessageConvert(t *testing.T) {
|
|
|
|
messagetest.TestRPCMessage(t,
|
|
|
|
func(empty bool) message.Message { return statustest.Detail(empty) },
|
|
|
|
func(empty bool) message.Message { return statustest.Status(empty) },
|
|
|
|
)
|
|
|
|
}
|