prototest

package
v0.10.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunFieldResolveClientTests

func RunFieldResolveClientTests(t *testing.T, f func(t *testing.T, tt FieldResolveClientTest))

RunFieldResolveClientTests runs all client tests on a function

func RunFieldResolveServerTests

func RunFieldResolveServerTests(t *testing.T, f func(t *testing.T, tt FieldResolveServerTest))

RunFieldResolveServerTests runs all client tests on a function

func RunInterfaceResolveTypeClientTests

func RunInterfaceResolveTypeClientTests(t *testing.T, f func(t *testing.T, tt InterfaceResolveTypeClientTest))

RunInterfaceResolveTypeClientTests runs all client tests on a function

func RunInterfaceResolveTypeServerTests

func RunInterfaceResolveTypeServerTests(t *testing.T, f func(t *testing.T, tt InterfaceResolveTypeServerTest))

RunInterfaceResolveTypeServerTests runs all client tests on a function

func RunScalarParseClientTests

func RunScalarParseClientTests(t *testing.T, f func(t *testing.T, tt ScalarParseClientTest))

RunScalarParseClientTests runs all client tests on a function

func RunScalarParseServerTests

func RunScalarParseServerTests(t *testing.T, f func(t *testing.T, tt ScalarParseServerTest))

RunScalarParseServerTests runs all client tests on a function

func RunScalarSerializeClientTests

func RunScalarSerializeClientTests(t *testing.T, f func(t *testing.T, tt ScalarSerializeClientTest))

RunScalarSerializeClientTests runs all client tests on a function

func RunScalarSerializeServerTests

func RunScalarSerializeServerTests(t *testing.T, f func(t *testing.T, tt ScalarSerializeServerTest))

RunScalarSerializeServerTests runs all client tests on a function

func RunSetSecretsClientTests

func RunSetSecretsClientTests(t *testing.T, f func(t *testing.T, tt SetSecretsClientTest))

RunSetSecretsClientTests runs all client tests on a function

func RunSetSecretsServerTests

func RunSetSecretsServerTests(t *testing.T, f func(t *testing.T, tt SetSecretsServerTest))

RunSetSecretsServerTests runs all client tests on a function

func RunUnionResolveTypeClientTests

func RunUnionResolveTypeClientTests(t *testing.T, f func(t *testing.T, tt UnionResolveTypeClientTest))

RunUnionResolveTypeClientTests runs all client tests on a function

func RunUnionResolveTypeServerTests

func RunUnionResolveTypeServerTests(t *testing.T, f func(t *testing.T, tt UnionResolveTypeServerTest))

RunUnionResolveTypeServerTests runs all client tests on a function

Types

type FieldResolveClientTest

type FieldResolveClientTest struct {
	Title         string
	Input         driver.FieldResolveInput
	ProtoRequest  *protoMessages.FieldResolveRequest
	ProtoResponse *protoMessages.FieldResolveResponse
	Expected      driver.FieldResolveOutput
}

FieldResolveClientTest is basic struct for testing clients implementing proto

func FieldResolveClientTestData

func FieldResolveClientTestData() []FieldResolveClientTest

FieldResolveClientTestData is a data for testing field resolution of proto clients

type FieldResolveServerTest

type FieldResolveServerTest struct {
	Title           string
	Input           *protoMessages.FieldResolveRequest
	HandlerInput    driver.FieldResolveInput
	HandlerResponse interface{}
	HandlerError    error
	Expected        *protoMessages.FieldResolveResponse
}

FieldResolveServerTest is basic struct for testing servers implementing proto

func FieldResolveServerTestData

func FieldResolveServerTestData() []FieldResolveServerTest

FieldResolveServerTestData is a data for testing field resolution of proto servers

type InterfaceResolveTypeClientTest

type InterfaceResolveTypeClientTest struct {
	Title         string
	Input         driver.InterfaceResolveTypeInput
	ProtoRequest  *protoMessages.InterfaceResolveTypeRequest
	ProtoResponse *protoMessages.InterfaceResolveTypeResponse
	ProtoError    error
	Expected      driver.InterfaceResolveTypeOutput
}

InterfaceResolveTypeClientTest is basic struct for testing clients implementing proto

func InterfaceResolveTypeClientTestData

func InterfaceResolveTypeClientTestData() []InterfaceResolveTypeClientTest

InterfaceResolveTypeClientTestData is a data for testing interface resolution of proto clients

type InterfaceResolveTypeServerTest

type InterfaceResolveTypeServerTest struct {
	Title         string
	Input         *protoMessages.InterfaceResolveTypeRequest
	HandlerInput  driver.InterfaceResolveTypeInput
	HandlerOutput string
	HandlerError  error
	Expected      *protoMessages.InterfaceResolveTypeResponse
}

InterfaceResolveTypeServerTest is basic struct for testing servers implementing proto

func InterfaceResolveTypeServerTestData

func InterfaceResolveTypeServerTestData() []InterfaceResolveTypeServerTest

InterfaceResolveTypeServerTestData is a data for testing interface resolution of proto servers

type ScalarParseClientTest

type ScalarParseClientTest struct {
	Title         string
	Input         driver.ScalarParseInput
	ProtoRequest  *protoMessages.ScalarParseRequest
	ProtoResponse *protoMessages.ScalarParseResponse
	ProtoError    error
	Expected      driver.ScalarParseOutput
}

ScalarParseClientTest is basic struct for testing clients implementing proto

func ScalarParseClientTestData

func ScalarParseClientTestData() []ScalarParseClientTest

ScalarParseClientTestData is a data for testing scalar resolution of proto clients

type ScalarParseServerTest

type ScalarParseServerTest struct {
	Title         string
	Input         *protoMessages.ScalarParseRequest
	HandlerInput  driver.ScalarParseInput
	HandlerOutput interface{}
	HandlerError  error
	Expected      *protoMessages.ScalarParseResponse
}

ScalarParseServerTest is basic struct for testing servers implementing proto

func ScalarParseServerTestData

func ScalarParseServerTestData() []ScalarParseServerTest

ScalarParseServerTestData is a data for testing scalar resolution of proto servers

type ScalarSerializeClientTest

type ScalarSerializeClientTest struct {
	Title         string
	Input         driver.ScalarSerializeInput
	ProtoRequest  *protoMessages.ScalarSerializeRequest
	ProtoResponse *protoMessages.ScalarSerializeResponse
	ProtoError    error
	Expected      driver.ScalarSerializeOutput
}

ScalarSerializeClientTest is basic struct for testing clients implementing proto

func ScalarSerializeClientTestData

func ScalarSerializeClientTestData() []ScalarSerializeClientTest

ScalarSerializeClientTestData is a data for testing scalar resolution of proto clients

type ScalarSerializeServerTest

type ScalarSerializeServerTest struct {
	Title         string
	Input         *protoMessages.ScalarSerializeRequest
	HandlerInput  driver.ScalarSerializeInput
	HandlerOutput interface{}
	HandlerError  error
	Expected      *protoMessages.ScalarSerializeResponse
}

ScalarSerializeServerTest is basic struct for testing servers implementing proto

func ScalarSerializeServerTestData

func ScalarSerializeServerTestData() []ScalarSerializeServerTest

ScalarSerializeServerTestData is a data for testing scalar resolution of proto servers

type SetSecretsClientTest

type SetSecretsClientTest struct {
	Title         string
	Input         driver.SetSecretsInput
	ProtoRequest  *protoMessages.SetSecretsRequest
	ProtoResponse *protoMessages.SetSecretsResponse
	ProtoError    error
	Expected      driver.SetSecretsOutput
}

func SetSecretsClientTestData

func SetSecretsClientTestData() []SetSecretsClientTest

SetSecretsClientTestData is a data for testing secrets of proto clients

type SetSecretsServerTest

type SetSecretsServerTest struct {
	Title         string
	Input         *protoMessages.SetSecretsRequest
	HandlerInput  driver.SetSecretsInput
	HandlerOutput error
	Expected      *protoMessages.SetSecretsResponse
}

SetSecretsServerTest is basic struct for testing clients implementing proto

func SetSecretsServerTestData

func SetSecretsServerTestData() []SetSecretsServerTest

SetSecretsServerTestData is a data for testing secrets of proto clients

type UnionResolveTypeClientTest

type UnionResolveTypeClientTest struct {
	Title         string
	Input         driver.UnionResolveTypeInput
	ProtoRequest  *protoMessages.UnionResolveTypeRequest
	ProtoResponse *protoMessages.UnionResolveTypeResponse
	ProtoError    error
	Expected      driver.UnionResolveTypeOutput
}

UnionResolveTypeClientTest is basic struct for testing clients implementing proto

func UnionResolveTypeClientTestData

func UnionResolveTypeClientTestData() []UnionResolveTypeClientTest

UnionResolveTypeClientTestData is a data for testing union resolution of proto clients

type UnionResolveTypeServerTest

type UnionResolveTypeServerTest struct {
	Title         string
	Input         *protoMessages.UnionResolveTypeRequest
	HandlerInput  driver.UnionResolveTypeInput
	HandlerOutput string
	HandlerError  error
	Expected      *protoMessages.UnionResolveTypeResponse
}

UnionResolveTypeServerTest is basic struct for testing servers implementing proto

func UnionResolveTypeServerTestData

func UnionResolveTypeServerTestData() []UnionResolveTypeServerTest

UnionResolveTypeServerTestData is a data for testing union resolution of proto servers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL