2021-11-06 10:38:52 +00:00
|
|
|
package status_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2022-12-09 11:16:24 +00:00
|
|
|
"github.com/TrueCloudLab/frostfs-api-go/v2/rpc/message"
|
|
|
|
messagetest "github.com/TrueCloudLab/frostfs-api-go/v2/rpc/message/test"
|
|
|
|
statustest "github.com/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) },
|
|
|
|
)
|
|
|
|
}
|