test

package
v2.0.0-beta.1+incompat... Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2016 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package test contains utilities to test topo.Impl implementations. If you are testing your implementation, you will want to call all the check methods in your test methods. For an example, look at the tests in github.com/youtube/vitess/go/vt/zktopo.

Package test contains utilities to test topo.Impl implementations. If you are testing your implementation, you will want to call CheckAll in your test method. For an example, look at the tests in github.com/youtube/vitess/go/vt/zktopo.

Package test contains utilities to test topo.Impl implementations. If you are testing your implementation, you will want to call CheckAll in your test method. For an example, look at the tests in github.com/youtube/vitess/go/vt/zktopo.

Package test contains utilities to test topo.Impl implementations. If you are testing your implementation, you will want to call CheckAll in your test method. For an example, look at the tests in github.com/youtube/vitess/go/vt/zktopo.

Package test contains utilities to test topo.Impl implementations. If you are testing your implementation, you will want to call CheckAll in your test method. For an example, look at the tests in github.com/youtube/vitess/go/vt/zktopo.

Package test contains utilities to test topo.Impl implementations. If you are testing your implementation, you will want to call CheckAll in your test method. For an example, look at the tests in github.com/youtube/vitess/go/vt/zktopo.

Package test contains utilities to test topo.Impl implementations. If you are testing your implementation, you will want to call CheckAll in your test method. For an example, look at the tests in github.com/youtube/vitess/go/vt/zktopo.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckKeyspace

func CheckKeyspace(ctx context.Context, t *testing.T, ts topo.Impl)

CheckKeyspace tests the keyspace part of the API

func CheckKeyspaceLock

func CheckKeyspaceLock(ctx context.Context, t *testing.T, ts topo.Impl)

CheckKeyspaceLock checks we can take a keyspace lock as expected.

func CheckServingGraph

func CheckServingGraph(ctx context.Context, t *testing.T, ts topo.Impl)

CheckServingGraph makes sure the serving graph functions work properly.

func CheckShard

func CheckShard(ctx context.Context, t *testing.T, ts topo.Impl)

CheckShard verifies the Shard operations work correctly

func CheckShardLock

func CheckShardLock(ctx context.Context, t *testing.T, ts topo.Impl)

CheckShardLock checks we can take a shard lock

func CheckShardReplication

func CheckShardReplication(ctx context.Context, t *testing.T, ts topo.Impl)

CheckShardReplication tests ShardReplication objects

func CheckSrvShardLock

func CheckSrvShardLock(ctx context.Context, t *testing.T, ts topo.Impl)

CheckSrvShardLock tests we can take a SrvShard lock

func CheckTablet

func CheckTablet(ctx context.Context, t *testing.T, ts topo.Impl)

CheckTablet verifies the topo server API is correct for managing tablets.

func CheckVSchema

func CheckVSchema(ctx context.Context, t *testing.T, ts topo.Impl)

CheckVSchema runs the tests on the VSchema part of the API

func CheckWatchSrvKeyspace

func CheckWatchSrvKeyspace(ctx context.Context, t *testing.T, ts topo.Impl)

CheckWatchSrvKeyspace makes sure WatchSrvKeyspace works as expected

Types

This section is empty.

Directories

Path Synopsis
Package faketopo contains utitlities for tests that have to interact with a Vitess topology.
Package faketopo contains utitlities for tests that have to interact with a Vitess topology.

Jump to

Keyboard shortcuts

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