Documentation ¶
Index ¶
- Constants
- Variables
- func Fail(t testingT, message string, objects Objects, args ...interface{})
- func FailS(message string, objects Objects, args ...interface{}) string
- func GetCurrentScriptDirectory() string
- func GetDifference(a, b interface{}, raw ...bool) string
- func GetTest(t testingT) *testing.T
- func ModifyWrappedText(text, wrappingString string, modifier func(wrappedText string) string) string
- type Object
- type Objects
Constants ¶
View Source
const (
ErrCanNotRunIfNotBuiltinTesting = "This test is only supported on types of *testing.T"
)
Variables ¶
View Source
var Highlight = pterm.NewStyle(pterm.FgLightRed).Sprint
Functions ¶
func GetCurrentScriptDirectory ¶ added in v0.2.2
func GetCurrentScriptDirectory() string
GetCurrentScriptDirectory returns the directory of the current Go file.
func GetDifference ¶
GetDifference returns the diff for two projects.
Types ¶
type Objects ¶
type Objects []Object
func NewObjectsExpectedActual ¶
func NewObjectsExpectedActual(expected, actual interface{}) Objects
func NewObjectsSingleNamed ¶
func NewObjectsSingleUnknown ¶
func NewObjectsSingleUnknown(obj interface{}) Objects
func NewObjectsUnknown ¶
func NewObjectsUnknown(objs ...interface{}) Objects
Click to show internal directories.
Click to hide internal directories.