Documentation ¶
Index ¶
- Constants
- func NewVersionProviderTest() common.VersionProvider
- type TestContext
- func (ctx *TestContext) NewHttpClient(transport *http.Transport) *http.Client
- func (ctx *TestContext) NewRestClientWithDefaults() *resty.Client
- func (ctx *TestContext) NewTransport() *http.Transport
- func (ctx *TestContext) NewTransportWithClientCert(cert *x509.Certificate, privateKey crypto.PrivateKey) *http.Transport
- func (ctx *TestContext) StartServer()
- func (ctx *TestContext) StartServerFor(test string, clean bool)
- func (ctx *TestContext) T() *testing.T
- func (ctx *TestContext) Teardown()
- type VersionProviderTest
- func (v VersionProviderTest) AsVersionInfo() *common.VersionInfo
- func (v VersionProviderTest) Branch() string
- func (v VersionProviderTest) BuildDate() string
- func (v VersionProviderTest) EncoderDecoder() common.VersionEncDec
- func (v VersionProviderTest) Revision() string
- func (v VersionProviderTest) Version() string
Constants ¶
View Source
const ( ControllerConfFile = "ctrl.yml" TransitRouterConfFile = "router.yml" )
Variables ¶
This section is empty.
Functions ¶
func NewVersionProviderTest ¶
func NewVersionProviderTest() common.VersionProvider
Types ¶
type TestContext ¶
type TestContext struct { Req *require.Assertions LogLevel string ControllerConfig *controller.Config // contains filtered or unexported fields }
func NewTestContext ¶
func NewTestContext(t *testing.T) *TestContext
func (*TestContext) NewHttpClient ¶
func (ctx *TestContext) NewHttpClient(transport *http.Transport) *http.Client
func (*TestContext) NewRestClientWithDefaults ¶
func (ctx *TestContext) NewRestClientWithDefaults() *resty.Client
func (*TestContext) NewTransport ¶
func (ctx *TestContext) NewTransport() *http.Transport
func (*TestContext) NewTransportWithClientCert ¶
func (ctx *TestContext) NewTransportWithClientCert(cert *x509.Certificate, privateKey crypto.PrivateKey) *http.Transport
func (*TestContext) StartServer ¶
func (ctx *TestContext) StartServer()
func (*TestContext) StartServerFor ¶
func (ctx *TestContext) StartServerFor(test string, clean bool)
func (*TestContext) T ¶
func (ctx *TestContext) T() *testing.T
func (*TestContext) Teardown ¶
func (ctx *TestContext) Teardown()
type VersionProviderTest ¶
type VersionProviderTest struct { }
func (VersionProviderTest) AsVersionInfo ¶
func (v VersionProviderTest) AsVersionInfo() *common.VersionInfo
func (VersionProviderTest) Branch ¶
func (v VersionProviderTest) Branch() string
func (VersionProviderTest) BuildDate ¶
func (v VersionProviderTest) BuildDate() string
func (VersionProviderTest) EncoderDecoder ¶
func (v VersionProviderTest) EncoderDecoder() common.VersionEncDec
func (VersionProviderTest) Revision ¶
func (v VersionProviderTest) Revision() string
func (VersionProviderTest) Version ¶
func (v VersionProviderTest) Version() string
Click to show internal directories.
Click to hide internal directories.