gtest

package
v0.0.0-...-f3abbe6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(t *testing.T, err error)

print error and end testing

func PrintlnExit

func PrintlnExit(t *testing.T, format string, args ...interface{})

print message and end testing

Types

type Case

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

func (*Case) Expect

func (c *Case) Expect(expect interface{}) *Case

func (*Case) Input

func (c *Case) Input(in interface{}) *Case

type CaseList

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

func NewCaseList

func NewCaseList() *CaseList

func (*CaseList) Get

func (cl *CaseList) Get() []CaseReadOnly

func (*CaseList) New

func (cl *CaseList) New() *Case

type CaseReadOnly

type CaseReadOnly struct {
	Inputs  []interface{}
	Expects []interface{}
}

Jump to

Keyboard shortcuts

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