Documentation
¶
Overview ¶
Package finders defines dynamic finders.
Index ¶
- func FindFirstTaskOfType(req *api.CrosTestRunnerDynamicRequest, t reflect.Type) (int, error)
- func FindLastTaskOfType(req *api.CrosTestRunnerDynamicRequest, t reflect.Type) (int, error)
- func GetFocalTaskFinder(req *api.CrosTestRunnerDynamicRequest, focalTaskFinder *api.FocalTaskFinder) (int, error)
- func MapTasksByType(req *api.CrosTestRunnerDynamicRequest) map[reflect.Type][]*TaskIndexPair
- type TaskIndexPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindFirstTaskOfType ¶
FindFirstTaskOfType is a helper that finds the first task that matches the given type.
func FindLastTaskOfType ¶
FindLastTaskOfType is a helper that finds the last task that matches the given type.
func GetFocalTaskFinder ¶
func GetFocalTaskFinder(req *api.CrosTestRunnerDynamicRequest, focalTaskFinder *api.FocalTaskFinder) (int, error)
GetFocalTaskFinder maps each finder to a handler.
func MapTasksByType ¶
func MapTasksByType(req *api.CrosTestRunnerDynamicRequest) map[reflect.Type][]*TaskIndexPair
MapTasksByType is a helper that reorganizes the trv2 ordered tasks into a map format for easier indexing by type.
Types ¶
type TaskIndexPair ¶
type TaskIndexPair struct { Task *api.CrosTestRunnerDynamicRequest_Task Index int }
Click to show internal directories.
Click to hide internal directories.