Aleksey Savchuk
c11f50efec
All checks were successful
DCO action / DCO (pull_request) Successful in 45s
Tests and linters / Tests (1.22) (pull_request) Successful in 1m5s
Tests and linters / Tests (1.23) (pull_request) Successful in 1m6s
Tests and linters / Lint (pull_request) Successful in 1m12s
Tests and linters / Tests with -race (pull_request) Successful in 1m20s
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
36 lines
2.3 KiB
Go
36 lines
2.3 KiB
Go
package container_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
containertest "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/container/test"
|
|
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/message"
|
|
messagetest "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/message/test"
|
|
)
|
|
|
|
func TestMessageConvert(t *testing.T) {
|
|
messagetest.TestRPCMessage(t,
|
|
func(empty bool) message.Message { return containertest.GenerateAttribute(empty) },
|
|
func(empty bool) message.Message { return containertest.GenerateContainer(empty) },
|
|
func(empty bool) message.Message { return containertest.GeneratePutRequestBody(empty) },
|
|
func(empty bool) message.Message { return containertest.GeneratePutRequest(empty) },
|
|
func(empty bool) message.Message { return containertest.GeneratePutResponseBody(empty) },
|
|
func(empty bool) message.Message { return containertest.GeneratePutResponse(empty) },
|
|
func(empty bool) message.Message { return containertest.GenerateGetRequestBody(empty) },
|
|
func(empty bool) message.Message { return containertest.GenerateGetRequest(empty) },
|
|
func(empty bool) message.Message { return containertest.GenerateGetResponseBody(empty) },
|
|
func(empty bool) message.Message { return containertest.GenerateGetResponse(empty) },
|
|
func(empty bool) message.Message { return containertest.GenerateDeleteRequestBody(empty) },
|
|
func(empty bool) message.Message { return containertest.GenerateDeleteRequest(empty) },
|
|
func(empty bool) message.Message { return containertest.GenerateDeleteResponseBody(empty) },
|
|
func(empty bool) message.Message { return containertest.GenerateDeleteResponse(empty) },
|
|
func(empty bool) message.Message { return containertest.GenerateListRequestBody(empty) },
|
|
func(empty bool) message.Message { return containertest.GenerateListRequest(empty) },
|
|
func(empty bool) message.Message { return containertest.GenerateListResponseBody(empty) },
|
|
func(empty bool) message.Message { return containertest.GenerateListResponse(empty) },
|
|
func(empty bool) message.Message { return containertest.GenerateGetRequestBody(empty) },
|
|
func(empty bool) message.Message { return containertest.GenerateGetRequest(empty) },
|
|
func(empty bool) message.Message { return containertest.GenerateGetResponseBody(empty) },
|
|
func(empty bool) message.Message { return containertest.GenerateGetResponse(empty) },
|
|
)
|
|
}
|