steps

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	APIFeature     *componentTest.APIFeature
	Config         *config.Config
	ErrorFeature   componentTest.ErrorFeature
	FakeAPIRouter  *FakeAPI
	HTTPServer     *http.Server
	ServiceRunning bool

	StartTime time.Time
	// contains filtered or unexported fields
}

Component contains all the information to create a component test

func NewSearchControllerComponent

func NewSearchControllerComponent() (c *Component, err error)

NewSearchControllerComponent creates a search controller component

func (*Component) Close

func (c *Component) Close() error

Close closes the search controller component

func (*Component) InitAPIFeature

func (c *Component) InitAPIFeature() *componentTest.APIFeature

InitAPIFeature initialises the ApiFeature that's contained within a specific JobsFeature.

func (*Component) InitialiseService

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

InitialiseService returns the http.Handler that's contained within the component.

func (*Component) RegisterSteps

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

RegisterSteps registers the specific steps needed to do component tests for the search controller

type FakeAPI

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

FakeAPI contains all the information for a fake component API

func NewFakeAPI

func NewFakeAPI() *FakeAPI

NewFakeAPI creates a new fake component API

func (*FakeAPI) Close

func (f *FakeAPI) Close()

Close closes the fake API

Jump to

Keyboard shortcuts

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