test

package
v1.0.0-alpha.32 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package test contains testing helpers

Index

Constants

This section is empty.

Variables

View Source
var CaCert = `` /* 1104-byte string literal not displayed */
View Source
var (
	HTTPRoutes = []string{
		apiPathPrefix + ("/databases/*"),
		apiPathPrefix + ("/collections/*"),
		apiPathPrefix + ("/documents/*"),
		apiPathPrefix + "/info",
		apiPathPrefix + ("/users/*"),
		apiPathPrefix + ("/auth/*"),
	}
)
View Source
var ServerCert = `` /* 998-byte string literal not displayed */
View Source
var ServerKey = `` /* 917-byte string literal not displayed */

Functions

func GRPCURL

func GRPCURL(shift int) string

func HTTPURL

func HTTPURL(shift int) string

func SetupTLS

func SetupTLS(t *testing.T) *tls.Config

func SetupTests

func SetupTests(t *testing.T, portShift int) (*mock.MockTigrisServer, *mock.MockUserServer, *mock.MockAuthServer, func())

Types

type ProtoMatcher

type ProtoMatcher struct {
	Message proto.Message
}

func (*ProtoMatcher) Matches

func (matcher *ProtoMatcher) Matches(actual interface{}) bool

func (*ProtoMatcher) String

func (matcher *ProtoMatcher) String() string

Jump to

Keyboard shortcuts

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