server

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadSessionOrNew

func LoadSessionOrNew(name string, suite *protocol.TestSuite) (*sessionStore, error)

func Start

func Start(cfg *Config, suite *protocol.TestSuite, sessionName string) error

Types

type Config

type Config struct {
	Port  int32
	Token string
}

type FileStorage added in v0.1.3

type FileStorage struct {
	OnSave OnSaveFunc
	// contains filtered or unexported fields
}

func LoadFileStorage added in v0.1.3

func LoadFileStorage(fn string, suite *protocol.TestSuite) (*FileStorage, error)

func NewFileStorage added in v0.1.3

func NewFileStorage(fn string, suite *protocol.TestSuite, runName string) *FileStorage

func (*FileStorage) AddParticipant added in v0.1.3

func (st *FileStorage) AddParticipant(tester string) error

func (*FileStorage) ClaimTestcase added in v0.1.3

func (st *FileStorage) ClaimTestcase(tester string, caseID string, claim bool) error

func (*FileStorage) GetParticipant added in v0.1.3

func (st *FileStorage) GetParticipant(tester string) (protocol.TestParticipant, bool)

func (*FileStorage) GetRun added in v0.1.3

func (st *FileStorage) GetRun() protocol.TestRun

func (*FileStorage) GetSuite added in v0.1.3

func (st *FileStorage) GetSuite() protocol.TestSuite

func (*FileStorage) Save added in v0.1.3

func (st *FileStorage) Save() error

func (*FileStorage) SetTestcaseRun added in v0.1.3

func (st *FileStorage) SetTestcaseRun(tester string, caseID string, result protocol.TestCaseResult, comment string) error

type OnSaveFunc added in v0.1.3

type OnSaveFunc func(st *FileStorage)

type Storage added in v0.1.3

type Storage interface {
	ClaimTestcase(tester string, caseID string, claim bool) error
	SetTestcaseRun(tester string, caseID string, result protocol.TestCaseResult, comment string) error
	AddParticipant(tester string) error
	Save() error

	GetSuite() protocol.TestSuite
	GetRun() protocol.TestRun
	GetParticipant(tester string) (protocol.TestParticipant, bool)
}

Jump to

Keyboard shortcuts

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