testowner

package
v0.0.0-...-5952ad4 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadCsv

type BadCsv string

func (BadCsv) Error

func (b BadCsv) Error() string

type OwnerInfo

type OwnerInfo struct {
	// User assigned to this test.
	User string
	// SIG holding responsibility for this test.
	SIG string
}

OwnerInfo stores the SIG and user which have responsibility for the test.

func (OwnerInfo) String

func (o OwnerInfo) String() string

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]*OwnerInfo) *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) (owner string)

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

func (*OwnerList) TestSIG

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

TestSIG returns the SIG assigned to a test, or else 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.

func (*ReloadingOwnerList) TestSIG

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

TestSIG returns the SIG 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