finders

package
v0.0.0-...-3c039c4 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package finders defines dynamic finders.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindFirstTaskOfType

func FindFirstTaskOfType(req *api.CrosTestRunnerDynamicRequest, t reflect.Type) (int, error)

FindFirstTaskOfType is a helper that finds the first task that matches the given type.

func FindLastTaskOfType

func FindLastTaskOfType(req *api.CrosTestRunnerDynamicRequest, t reflect.Type) (int, error)

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
}

Jump to

Keyboard shortcuts

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