runner

package
v0.0.0-...-552dcf1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assertions

type Assertions interface {
	NoError(err error, msgAndArgs ...interface{})
	EqualError(theError error, errString string, msgAndArgs ...interface{})
	True(value bool, msgAndArgs ...interface{})
	Equal(expected, actual interface{}, msgAndArgs ...interface{})
}

func NewTestifyAssertions

func NewTestifyAssertions(t assert.TestingT) Assertions

type Test

type Test struct {
	Run    string
	Setup  TestSetup
	Expect TestExpect
}

type TestExpect

type TestExpect struct {
	Output string
	Error  string
	Files  []TestFile
}

type TestFile

type TestFile struct {
	Path    string
	Content string
	Source  string
}

type TestRunner

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

func NewTestRunner

func NewTestRunner(osFs *afero.Afero, testPath string, useMemFs bool, assert Assertions) *TestRunner

func (*TestRunner) Run

func (runner *TestRunner) Run()

type TestSetup

type TestSetup struct {
	Files []TestFile
}

type TestifyAssertions

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

func (*TestifyAssertions) Equal

func (a *TestifyAssertions) Equal(expected, actual interface{}, msgAndArgs ...interface{})

func (*TestifyAssertions) EqualError

func (a *TestifyAssertions) EqualError(theError error, errString string, msgAndArgs ...interface{})

func (*TestifyAssertions) NoError

func (a *TestifyAssertions) NoError(err error, msgAndArgs ...interface{})

func (*TestifyAssertions) True

func (a *TestifyAssertions) True(value bool, msgAndArgs ...interface{})

Jump to

Keyboard shortcuts

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