steps

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BuildTime = strconv.Itoa(time.Now().Nanosecond())
	GitCommit = "component test commit"
	Version   = "component test version"
)

Functions

This section is empty.

Types

type Component

type Component struct {
	componenttest.ErrorFeature

	Config          *config.Config
	HTTPServer      *http.Server
	EmailSenderMock *mock.EmailSenderMock
	ServiceRunning  bool
	// contains filtered or unexported fields
}

func NewComponent

func NewComponent() (*Component, error)

func (*Component) Close

func (c *Component) Close() error

func (*Component) RegisterSteps

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

func (*Component) Reset

func (c *Component) Reset() *Component

func (*Component) Router

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

Router initialises the service, returning the service's (server) router for tests This delayed initialisation is needed to ensure that any changes to the router (or the service in general) as a result of test setup, are picked up

Jump to

Keyboard shortcuts

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