Documentation ¶
Index ¶
- func CreateTestConfig(filename string, t *testing.T) (*model.TaskConfig, error)
- func SetupAPITestData(taskDisplayName string, isPatch bool, t *testing.T) (*model.Task, *build.Build, error)
- func TestAgentCommunicator(taskId string, taskSecret string, apiRootUrl string) *agent.HTTPCommunicator
- type MockLogger
- func (_ *MockLogger) Flush()
- func (_ *MockLogger) GetTaskLogWriter(level slogger.Level) io.Writer
- func (_ *MockLogger) LogExecution(level slogger.Level, messageFmt string, args ...interface{})
- func (_ *MockLogger) LogLocal(level slogger.Level, messageFmt string, args ...interface{})
- func (_ *MockLogger) LogSystem(level slogger.Level, messageFmt string, args ...interface{})
- func (_ *MockLogger) LogTask(level slogger.Level, messageFmt string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTestConfig ¶
func SetupAPITestData ¶
func TestAgentCommunicator ¶
func TestAgentCommunicator(taskId string, taskSecret string, apiRootUrl string) *agent.HTTPCommunicator
Types ¶
type MockLogger ¶
type MockLogger struct{}
func (*MockLogger) Flush ¶
func (_ *MockLogger) Flush()
func (*MockLogger) GetTaskLogWriter ¶
func (_ *MockLogger) GetTaskLogWriter(level slogger.Level) io.Writer
func (*MockLogger) LogExecution ¶
func (_ *MockLogger) LogExecution(level slogger.Level, messageFmt string, args ...interface{})
func (*MockLogger) LogLocal ¶
func (_ *MockLogger) LogLocal(level slogger.Level, messageFmt string, args ...interface{})
func (*MockLogger) LogSystem ¶
func (_ *MockLogger) LogSystem(level slogger.Level, messageFmt string, args ...interface{})
func (*MockLogger) LogTask ¶
func (_ *MockLogger) LogTask(level slogger.Level, messageFmt string, args ...interface{})
Click to show internal directories.
Click to hide internal directories.