Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TesterContext ¶
type TesterContext struct {
ExecutablePath string
IsDebug bool
TestCases []TesterContextTestCase
ShouldSkipAntiCheatTestCases bool
}
TesterContext holds all flags passed in via environment variables, or from the codecrafters.yml file
func GetTesterContext ¶
func GetTesterContext(env map[string]string, definition tester_definition.TesterDefinition) (TesterContext, error)
GetContext parses flags and returns a Context object
func (TesterContext) Print ¶
func (c TesterContext) Print()
type TesterContextTestCase ¶
type TesterContextTestCase struct {
// Slug is the slug of the test case. Example: "bind-to-port"
Slug string `json:"slug"`
// TesterLogPrefix is the prefix that'll be used for all logs emitted by the tester. Example: "stage-1"
TesterLogPrefix string `json:"tester_log_prefix"`
// Title is the title of the test case. Example: "Stage #1: Bind to a port"
Title string `json:"title"`
}
TesterContextTestCase represents one element in the CODECRAFTERS_TEST_CASES environment variable
Click to show internal directories.
Click to hide internal directories.