plugintest

package
v0.0.0-...-900fa13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2015 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTestConfig

func CreateTestConfig(filename string, t *testing.T) (*model.TaskConfig, error)

func SetupAPITestData

func SetupAPITestData(taskDisplayName string, isPatch bool, t *testing.T) (*model.Task, *build.Build, error)

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{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL