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 ¶
NewSearchControllerComponent creates a 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 ¶
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
Click to show internal directories.
Click to hide internal directories.