generate

package
v0.0.0-...-0dc4fe5 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2016 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const GeneratedFilename = "generated_by_gunit_test.go"

Variables

This section is empty.

Functions

func Checksum

func Checksum(directory string) (string, error)

func CodeListing

func CodeListing(directory string) (map[string]string, error)

func ReadFiles

func ReadFiles(directory string, files []os.FileInfo) ([]byte, error)

func SelectGoTestFiles

func SelectGoTestFiles(files []os.FileInfo) []os.FileInfo

func TestCases

func TestCases(fixture *parse.Fixture) ([]byte, error)

func TestFile

func TestFile(packageName string, fixtures []*parse.Fixture, checksum string, code map[string]string) ([]byte, error)

TestFile generates complete source code for a _test.go file from the provided fixtures.

Types

This section is empty.

Jump to

Keyboard shortcuts

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