exonerations

package
v0.0.0-...-51f9457 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustParseName

func MustParseName(name string) (invID invocations.ID, testID, exonerationID string)

MustParseName extracts invocation, test id and exoneration IDs from the name. Panics on failure.

func Read

func Read(ctx context.Context, name string) (*pb.TestExoneration, error)

Read reads a test exoneration from Spanner. If it does not exist, the returned error is annotated with NotFound GRPC code.

Types

type Query

type Query struct {
	InvocationIDs invocations.IDSet
	Predicate     *pb.TestExonerationPredicate
	PageSize      int // must be positive
	PageToken     string
}

Query specifies test exonerations to fetch.

func (*Query) Fetch

func (q *Query) Fetch(ctx context.Context) (tes []*pb.TestExoneration, nextPageToken string, err error)

Fetch returns a page test of exonerations matching the query. Returned test exonerations are ordered by invocation ID, test ID and exoneration ID.

Jump to

Keyboard shortcuts

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