test

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BotForDUT

func BotForDUT(id string, state string, dims string) *swarming.SwarmingRpcsBotInfo

BotForDUT returns BotInfos for DUTs with the given dut id.

state is the bot's state dimension. dims is a convenient way to specify other bot dimensions. "a:x,y;b:z" will set the dimensions of the bot to ["a": ["x", "y"], "b":

["z"]]

func FakeListAliveBotsInPool

func FakeListAliveBotsInPool(bots []*swarming.SwarmingRpcsBotInfo) func(context.Context, string, strpair.Map) ([]*swarming.SwarmingRpcsBotInfo, error)

FakeListAliveBotsInPool returns a function that implements SwarmingClient.ListAliveBotsInPool.

This fake implementation captures the bots argument and returns a subset of the bots filtered by the dimensions argument in the SwarmingClient.ListAliveBotsInPool call.

Types

This section is empty.

Jump to

Keyboard shortcuts

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