go-vitess.v1: gopkg.in/src-d/go-vitess.v1/vt/vtgate/vtgateconntest Index | Files

package vtgateconntest

import "gopkg.in/src-d/go-vitess.v1/vt/vtgate/vtgateconntest"

Package vtgateconntest provides the test methods to make sure a vtgateconn/vtgateservice pair over RPC works correctly.

Index

Package Files

client.go

func CreateFakeServer Uses

func CreateFakeServer(t *testing.T) vtgateservice.VTGateService

CreateFakeServer returns the fake server for the tests

func RegisterTestDialProtocol Uses

func RegisterTestDialProtocol(impl vtgateconn.Impl)

RegisterTestDialProtocol registers a vtgateconn implementation under the "test" protocol

func TestErrorSuite Uses

func TestErrorSuite(t *testing.T, fakeServer vtgateservice.VTGateService)

TestErrorSuite runs all the tests that expect errors

func TestSuite Uses

func TestSuite(t *testing.T, impl vtgateconn.Impl, fakeServer vtgateservice.VTGateService)

TestSuite runs all the tests

Package vtgateconntest imports 18 packages (graph). Updated 2019-06-13. Refresh now. Tools for package owners.