test

package
v1.24.0-basal-automated.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	*test.Mock
	InitializeMiddlewareInvocations int
	InitializeMiddlewareOutputs     []error
	InitializeRouterInvocations     int
	InitializeRouterInputs          [][]*rest.Route
	InitializeRouterOutputs         []error
	StatusInvocations               int
	StatusOutputs                   []*rest.Status
	HandlerInvocations              int
	HandlerOutputs                  []http.Handler
}

func NewAPI

func NewAPI() *API

func (*API) Expectations

func (a *API) Expectations()

func (*API) Handler

func (a *API) Handler() http.Handler

func (*API) InitializeMiddleware

func (a *API) InitializeMiddleware() error

func (*API) InitializeRouter

func (a *API) InitializeRouter(routes ...*rest.Route) error

func (*API) Status

func (a *API) Status() *rest.Status

type Service

type Service struct {
	*test.Mock
	VersionReporterInvocations int
	VersionReporterImpl        version.Reporter
	ConfigReporterInvocations  int
	ConfigReporterImpl         *testConfig.Reporter
	LoggerInvocations          int
	LoggerImpl                 log.Logger
	SecretInvocations          int
	SecretOutputs              []string
	AuthClientInvocations      int
	AuthClientImpl             *testAuth.Client
}

func NewService

func NewService() *Service

func (*Service) AuthClient

func (s *Service) AuthClient() auth.Client

func (*Service) ConfigReporter

func (s *Service) ConfigReporter() config.Reporter

func (*Service) Expectations

func (s *Service) Expectations()

func (*Service) Logger

func (s *Service) Logger() log.Logger

func (*Service) Secret

func (s *Service) Secret() string

func (*Service) VersionReporter

func (s *Service) VersionReporter() version.Reporter

Jump to

Keyboard shortcuts

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