Documentation ¶
Overview ¶
Package itest contains unit tests targeting dependency injection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AgentT ¶
type AgentT struct {
// contains filtered or unexported fields
}
AgentT is similar to what testing.T is in golang packages.
func (*AgentT) Setup ¶
Setup registers gomega and starts the agent with the flavor argument
type AllConnectorsFlavorMocks ¶ added in v1.0.3
AllConnectorsFlavorMocks
func MockAllConnectorsFlavor ¶ added in v1.0.3
func MockAllConnectorsFlavor(t *testing.T, flavorLocal *local.FlavorLocal) (*connectors.AllConnectorsFlavor, *AllConnectorsFlavorMocks)
MockAllConnectororsFlavor initializes embeded ETCD & Kafka MOCK
Example:
kafkamock, _, _ := kafkamux.Mock(t) MockAllConnectorsFlavor(t, localFlavor)
type Given ¶
type Given struct { }
Given is composition of multiple test step methods (see BDD Given keyword)
type Then ¶
type Then struct { }
Then is composition of multiple test step methods (see BDD Then keyword)
type When ¶
type When struct { }
When is composition of multiple test step methods (see BDD When keyword)
Click to show internal directories.
Click to hide internal directories.