instestconveyor

package
v0.0.0-...-05bc493 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CycleController

type CycleController struct {
	// contains filtered or unexported fields
}

func (*CycleController) ResetActiveConveyorFlag

func (s *CycleController) ResetActiveConveyorFlag()

func (*CycleController) ResumeConveyor

func (s *CycleController) ResumeConveyor()

func (*CycleController) SuspendConveyorAndWait

func (s *CycleController) SuspendConveyorAndWait()

func (*CycleController) SuspendConveyorAndWaitThenResetActive

func (s *CycleController) SuspendConveyorAndWaitThenResetActive()

func (*CycleController) SuspendConveyorNoWait

func (s *CycleController) SuspendConveyorNoWait()

func (*CycleController) WaitActiveThenIdleConveyor

func (s *CycleController) WaitActiveThenIdleConveyor()

func (*CycleController) WaitIdleConveyor

func (s *CycleController) WaitIdleConveyor()

type ServerTemplate

type ServerTemplate struct {
	// contains filtered or unexported fields
}

func (*ServerTemplate) App

App returns app compartment. Panics when wasn't started.

func (*ServerTemplate) IncrementPulse

func (p *ServerTemplate) IncrementPulse()

IncrementPulse generates and applies next pulse.

func (*ServerTemplate) InitTemplate

func (p *ServerTemplate) InitTemplate(appFn AppCompartmentFunc, appImposeFn insconveyor.ImposerFunc)

InitTemplate is used to set up a default behavior for a test server. Can only be called once. Handler (appFn) must be provided to create an app compartment. Handler (appImposeFn) is optional and will be invoked before a handler set by SetImposer(). Handler (appImposeFn) can set insconveyor.ImposerFunc.ComponentInterceptFn.

func (*ServerTemplate) Injector

Injector returns a dependency injector with dependencies available for the app compartment. There is NO access to dependencies added by pulse slots. Panics when wasn't started.

func (*ServerTemplate) LastPulseNumber

func (p *ServerTemplate) LastPulseNumber() pulse.Number

func (*ServerTemplate) Pulsar

Pulsar returns a pulse generator. Panics when zero.

func (*ServerTemplate) SetAppComponents

func (p *ServerTemplate) SetAppComponents(ac insapp.AppComponents)

SetAppComponents sets per-test overrides for app components. Nil values will be replaced by default. Can only be called once and before the server is initialized / started.

func (*ServerTemplate) SetConfig

func (p *ServerTemplate) SetConfig(cfg configuration.Configuration)

SetConfig updates config. Can only be called before the server is initialized / started.

func (*ServerTemplate) SetImposer

func (p *ServerTemplate) SetImposer(fn insconveyor.ImposerFunc)

SetImposer sets per-test override logic. Can only be called once and before the server is initialized / started. Handler is NOT allowed to set insconveyor.ImposerFunc.ComponentInterceptFn.

func (*ServerTemplate) Start

func (p *ServerTemplate) Start()

Start initializes and starts the test server.

func (*ServerTemplate) Stop

func (p *ServerTemplate) Stop()

Stop cancels context and initiates stop of the app compartment.

func (*ServerTemplate) T

func (p *ServerTemplate) T() minimock.Tester

Jump to

Keyboard shortcuts

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