mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-18 09:25:25 +00:00
times.go: Add test query filter
Usage: `./tools/run cts time -query QUERY ...` Change-Id: Ifac16ee2405d1b5d03d246bf1556245e2dafe8c1 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/93304 Commit-Queue: Austin Eng <enga@chromium.org> Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
@@ -270,6 +270,13 @@ func (l List) FilterByVariant(tags Tags) List {
|
||||
})
|
||||
}
|
||||
|
||||
/// FilterByQuery returns the results that match the given query
|
||||
func (l List) FilterByQuery(q query.Query) List {
|
||||
return l.Filter(func(r Result) bool {
|
||||
return q.Contains(r.Query)
|
||||
})
|
||||
}
|
||||
|
||||
// Statuses is a set of Status
|
||||
type Statuses = container.Set[Status]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user