table

package
v0.0.0-...-fbd1831 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Table

type Table struct {
	Package   string
	Type      string
	Functions []string
}

Table is a type which can generate a test and table definition for a package, type and func name

func New

func New(pkg, typ string, funcs ...string) Table

New configures a Table type definition

func (Table) CaseType

func (t Table) CaseType(fn string) string

CaseType returns the name of the test case type to be generated

func (Table) WriteDefTo

func (t Table) WriteDefTo(w io.Writer) (int64, error)

WriteDefTo writes out the table definition to the writer

func (Table) WriteTestTo

func (t Table) WriteTestTo(w io.Writer) (int64, error)

WriteTestTo writes out the test definition to the writer

Jump to

Keyboard shortcuts

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