steps

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BuildTime string = "1625046891"
	GitCommit string = "7434fe334d9f51b7239f978094ea29d10ac33b16"
	Version   string = ""
)

Functions

This section is empty.

Types

type Component

type Component struct {
	componenttest.ErrorFeature

	CantabularSrv    *httpfake.HTTPFake
	CantabularApiExt *httpfake.HTTPFake

	HTTPServer     *http.Server
	ServiceRunning bool
	// contains filtered or unexported fields
}

func NewComponent

func NewComponent(t testing.TB, zebedeeURL string) (*Component, error)

func (*Component) Close

func (c *Component) Close()

Close kills the application under test.

func (*Component) Init

func (c *Component) Init() (http.Handler, error)

Init initialises the server and the mocks

func (*Component) RegisterSteps

func (c *Component) RegisterSteps(ctx *godog.ScenarioContext)

func (*Component) Reset

func (c *Component) Reset() error

Reset runs before each scenario. It re-initialises the service under test and the api mocks. Note that the service under test should not be started yet to prevent race conditions if it tries to call un-initialised dependencies (steps)

Jump to

Keyboard shortcuts

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