testfuncs

package
v0.17.0-pre.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

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

An Index records the test set of a package.

func Decode

func Decode(data []byte) *Index

Decode decodes the given gob-encoded data as an Index.

func NewIndex

func NewIndex(files []*parsego.File, info *types.Info) *Index

NewIndex returns a new index of method-set information for all package-level types in the specified package.

func (*Index) All

func (index *Index) All() []Result

func (*Index) Encode

func (index *Index) Encode() []byte

Encode encodes the receiver as gob-encoded data.

type Result

type Result struct {
	Location protocol.Location // location of the test
	Name     string            // name of the test
}

A Result reports a test function

Jump to

Keyboard shortcuts

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