testframework

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 License: MIT Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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