testframework

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	// name is case insensitive
	Name      string
	Creator   func() IntegrationTest
	EntryArgs EntryArgList
}

Entry is the registery entry

type EntryArgList

type EntryArgList = map[string]interface{}

EntryArgList is the entry args

type IntegrationTest

type IntegrationTest interface {
	// Execute is the main entry of a test.
	// It returns any error if an error happens
	Execute(*TestService) error
}

IntegrationTest is the interface for all integration tests All tests must implement this interface

type TestService

type TestService struct {
	// contains filtered or unexported fields
}

TestService is the test service

func NewTestService

func NewTestService() *TestService

NewTestService create a new TestService object

func (*TestService) BindEntryArgs

func (service *TestService) BindEntryArgs(entryArgs EntryArgList)

BindEntryArgs binds the entry args

func (*TestService) CleanUp

func (service *TestService) CleanUp() error

CleanUp acts as the destructor

func (*TestService) GetArgString

func (service *TestService) GetArgString(name string, defaultValue string) string

GetArgString return the arg string

func (*TestService) GetTempFileName

func (service *TestService) GetTempFileName(prefix string, postfix string) string

GetTempFileName returns temporary file name

Jump to

Keyboard shortcuts

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