go-vitess.v1: gopkg.in/src-d/go-vitess.v1/vt/vttablet/agentrpctest Index | Files

package agentrpctest

import "gopkg.in/src-d/go-vitess.v1/vt/vttablet/agentrpctest"

Index

Package Files

test_agent_rpc.go

func NewFakeRPCAgent Uses

func NewFakeRPCAgent(t *testing.T) tabletmanager.RPCAgent

NewFakeRPCAgent returns a fake tabletmanager.RPCAgent that's just a mirror.

func Run Uses

func Run(t *testing.T, client tmclient.TabletManagerClient, tablet *topodatapb.Tablet, fakeAgent tabletmanager.RPCAgent)

Run will run the test suite using the provided client and the provided tablet. Tablet's vt address needs to be configured so the client will connect to a server backed by our RPCAgent (returned by NewFakeRPCAgent)

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