mao: github.com/azer/mao Index | Files

package mao

import "github.com/azer/mao"

Index

Package Files

bdd.go expect.go out.go test.go

Variables

var (
    Describe func(desc string, wrapper func(It)) = Desc
)

func AfterEach Uses

func AfterEach(fn BeforeAfterFn)

func BeforeEach Uses

func BeforeEach(fn BeforeAfterFn)

func Desc Uses

func Desc(desc string, wrapper func(It))

func PrintTestSummary Uses

func PrintTestSummary()

type BeforeAfterFn Uses

type BeforeAfterFn func()

type Expect Uses

type Expect func(val interface{}) *Expected

type Expected Uses

type Expected struct {
    Scope *Test
    Value interface{}
}

func (*Expected) Above Uses

func (self *Expected) Above(b interface{})

func (*Expected) Equal Uses

func (self *Expected) Equal(b interface{})

func (*Expected) Lower Uses

func (self *Expected) Lower(b interface{})

func (*Expected) NotEqual Uses

func (self *Expected) NotEqual(b interface{})

func (*Expected) NotExist Uses

func (self *Expected) NotExist()

func (*Expected) ResponseBody Uses

func (self *Expected) ResponseBody(b interface{})

type FailingLine Uses

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

type It Uses

type It func(title string, fn func(Expect))

type Test Uses

type Test struct {
    Title      string
    Fn         func(Expect)
    BeforeEach BeforeAfterFn
    AfterEach  BeforeAfterFn
}

func (*Test) PrintError Uses

func (test *Test) PrintError(message string)

func (*Test) PrintFailingLine Uses

func (test *Test) PrintFailingLine(failingLine *FailingLine)

func (*Test) PrintTitle Uses

func (test *Test) PrintTitle(title string)

func (*Test) Run Uses

func (test *Test) Run()

Package mao imports 9 packages (graph). Updated 2016-07-24. Refresh now. Tools for package owners.