testutil

package
v0.0.0-...-dfdf941 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GSpec

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

GSpec test log formatting that's similar to RSpec

func (*GSpec) AssertAndFailNow

func (gs *GSpec) AssertAndFailNow(assertion bool, expected string, actual interface{})

AssertAndFailNow checks for .Error()assertion and fails now if not true

func (*GSpec) CheckMark

func (gs *GSpec) CheckMark(format string, args ...interface{})

CheckMark prepends checkmark to given message

func (*GSpec) Expect

func (gs *GSpec) Expect(expect func())

Expect calls anonymous code block

func (*GSpec) Given

func (gs *GSpec) Given(inputs ...string)

Given given input

func (*GSpec) Then

func (gs *GSpec) Then()

Then prints out then:

func (*GSpec) When

func (gs *GSpec) When(operation string)

When when describes operation

func (*GSpec) XMark

func (gs *GSpec) XMark(format string, args ...interface{})

XMark prepends x mark to given message

Jump to

Keyboard shortcuts

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