tools

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestNames

type TestNames struct {
	Integration []string
	Unit        []string
}

TestNames is a collection of functions defining integration and unit tests.

func AddFileNumber

func AddFileNumber(set *token.FileSet, file *ast.File) TestNames

AddFileNumber this will add line number markers to the file's t.Error, t.Errof, t.Fatal and t.Fatalf methods.

func (*TestNames) Filter added in v0.3.0

func (t *TestNames) Filter(re *regexp.Regexp)

type Visitor

type Visitor struct {
	Names TestNames
	Set   *token.FileSet
	// contains filtered or unexported fields
}

func New

func New(set *token.FileSet) *Visitor

func (*Visitor) Visit

func (v *Visitor) Visit(node ast.Node) ast.Visitor

Jump to

Keyboard shortcuts

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