testowner

package
v0.0.0-...-9815b6b Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OwnerList

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

OwnerList uses a map to get owners for a given test name.

func NewOwnerList

func NewOwnerList(mapping map[string]string) *OwnerList

NewOwnerList constructs an OwnerList given a mapping from test names to test owners.

func NewOwnerListFromCsv

func NewOwnerListFromCsv(r io.Reader) (*OwnerList, error)

NewOwnerListFromCsv constructs an OwnerList given a CSV file that includes 'owner' and 'test name' columns.

func (*OwnerList) TestOwner

func (o *OwnerList) TestOwner(testName string) string

TestOwner returns the owner for a test, or the empty string if none is found.

type ReloadingOwnerList

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

ReloadingOwnerList maps test names to owners, reloading the mapping when the underlying file is changed.

func NewReloadingOwnerList

func NewReloadingOwnerList(path string) (*ReloadingOwnerList, error)

NewReloadingOwnerList creates a ReloadingOwnerList given a path to a CSV file containing owner mapping information.

func (*ReloadingOwnerList) TestOwner

func (o *ReloadingOwnerList) TestOwner(testName string) string

TestOwner returns the owner for a test, or the empty string if none is found.

Jump to

Keyboard shortcuts

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