Documentation ¶
Overview ¶
Package testmetadata implements methods to query from TestMetadata spanner table.
Package testmetadata implements methods to query from TestMetadata spanner table.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadTestMetadata ¶
func ReadTestMetadata(ctx context.Context, opts ReadTestMetadataOptions, f func(*TestMetadataRow) error) error
ReadTestMetadata read rows from TestMetadata table.
Types ¶
type Query ¶
type Query struct { Project string SubRealms []string Predicate *pb.TestMetadataPredicate PageSize int PageToken string }
Query a set of TestMetadataRow for a list of tests which have the same same subRealm and sourceRef in a LUCI project.
func (*Query) Fetch ¶
func (q *Query) Fetch(ctx context.Context) (tmr []*pb.TestMetadataDetail, nextPageToken string, err error)
Fetch distinct matching TestMetadataDetails from on the TestMetadata table. The returned TestMetadataDetails are ordered by testID, refHash ascendingly. If the test exists in multiples subRealms, lexicographically minimum subRealm is returned.
Click to show internal directories.
Click to hide internal directories.