Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InputItemList = []TestItem{ NewTestItem("item1"), NewTestItem("item2"), NewTestItem("item3"), NewTestItem("item4"), NewTestItem("item5"), }
Functions ¶
func WaitForServer ¶
WaitForServer waits for the server at the specified address and port to respond with a heartbeat within the given timeout duration. It periodically sends HTTP GET requests to the server's heartbeat endpoint until a successful response is received or the timeout is reached. If a successful response is received within the timeout, it returns nil. Otherwise, it returns an error indicating that the server did not reply within the specified timeout.
Types ¶
type Person ¶
func NewDefaultPerson ¶
func NewDefaultPerson() Person
NewDefaultPerson returns a new testutil.Person with default values. The default values are: - Name: "John" - Age: 30
type TestItem ¶
type TestItem struct {
Value string
}
func NewTestItem ¶
NewTestItem creates a new testutil.TestItem with the specified value.
Click to show internal directories.
Click to hide internal directories.