testdata

package
v0.0.0-...-64f2fc3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FixtureRawFile

func FixtureRawFile(p fixture.Param) interface{}

func NoConversion

func NoConversion(value interface{}) interface{}

func Read

func Read(path string) []byte

func ResultRawFile

func ResultRawFile(p fixture.Result) interface{}

Types

type Parameters

type Parameters struct {
	*fixture.Parameters
	// contains filtered or unexported fields
}

func P

func P(name string) *Parameters

func (*Parameters) BasePath

func (p *Parameters) BasePath() string

testdata.BasePath('./testdata/fixture_{testname}_')

func (*Parameters) Paths

func (p *Parameters) Paths() []string

testdata.Paths(base string)

func (*Parameters) Values

func (p *Parameters) Values() []fixture.Param

type Results

type Results struct {
	*fixture.Results
	// contains filtered or unexported fields
}

func R

func R(name string) *Results

func Rt

func Rt(name string, convert TypeConversion) *Results

func (*Results) BasePath

func (r *Results) BasePath() string

func (*Results) Paths

func (r *Results) Paths() []string

func (*Results) Values

func (r *Results) Values() []fixture.Result

type TypeConversion

type TypeConversion func(value interface{}) interface{}

Jump to

Keyboard shortcuts

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