Documentation ¶
Overview ¶
Package testmatrix helps running a matrix of tests
Index ¶
- Variables
- func NewMatrixReader(testMatrix [][]interface{}) *sliceReader
- func StringToBool(text string) (bool, bool)
- type Headers
- type Reader
- type ResultsRow
- type TestMatrix
- func (matrix TestMatrix) Assert(r Reader, assert func(subjectText string, headerText string) bool)
- func (matrix TestMatrix) AssertCsv(reader io.Reader, assert func(subjectText string, headerText string) bool)
- func (matrix TestMatrix) AssertSlice(data [][]interface{}, assert func(subjectText string, headerText string) bool)
Constants ¶
This section is empty.
Variables ¶
View Source
var EOF error
View Source
var InvalidPositionErr error
View Source
var UnparsableErr error
Functions ¶
func NewMatrixReader ¶
func NewMatrixReader(testMatrix [][]interface{}) *sliceReader
func StringToBool ¶
Types ¶
type Reader ¶
type Reader interface { ReadHeaders() (Headers, error) Read() (ResultsRow, error) }
func NewCsvReader ¶
type ResultsRow ¶
type TestMatrix ¶
type TestMatrix struct { FailureText string SuccessText string // contains filtered or unexported fields }
func NewColoredTestMatrix ¶
func NewColoredTestMatrix(t *testing.T) TestMatrix
func NewTestMatrix ¶
func NewTestMatrix(t *testing.T) TestMatrix
func (TestMatrix) Assert ¶
func (matrix TestMatrix) Assert(r Reader, assert func(subjectText string, headerText string) bool)
func (TestMatrix) AssertSlice ¶
func (matrix TestMatrix) AssertSlice(data [][]interface{}, assert func(subjectText string, headerText string) bool)
Click to show internal directories.
Click to hide internal directories.