vtgateconntest

package
v2.1.0-alpha.2+incompa... Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2017 License: BSD-3-Clause Imports: 19 Imported by: 0

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.

Jump to

Keyboard shortcuts

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