2021-11-06 10:38:52 +00:00
|
|
|
package status_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2021-11-17 09:35:56 +00:00
|
|
|
"github.com/nspcc-dev/neofs-api-go/v2/rpc/message"
|
|
|
|
messagetest "github.com/nspcc-dev/neofs-api-go/v2/rpc/message/test"
|
2021-11-06 10:38:52 +00:00
|
|
|
statustest "github.com/nspcc-dev/neofs-api-go/v2/status/test"
|
|
|
|
)
|
|
|
|
|
|
|
|
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) },
|
|
|
|
)
|
|
|
|
}
|