steps

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: MIT Imports: 13 Imported by: ? 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 = 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