Documentation ¶
Overview ¶
Package vtgateconntest provides the test methods to make sure a vtgateconn/vtgateservice pair over RPC works correctly.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFakeServer ¶
func CreateFakeServer(t *testing.T) vtgateservice.VTGateService
CreateFakeServer returns the fake server for the tests
func RegisterTestDialProtocol ¶
func RegisterTestDialProtocol(impl vtgateconn.Impl)
RegisterTestDialProtocol registers a vtgateconn implementation under the "test" protocol
func TestErrorSuite ¶
func TestErrorSuite(t *testing.T, fakeServer vtgateservice.VTGateService)
TestErrorSuite runs all the tests that expect errors
func TestSuite ¶
func TestSuite(t *testing.T, impl vtgateconn.Impl, fakeServer vtgateservice.VTGateService)
TestSuite runs all the tests
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.