testingutil

package
v0.0.0-...-d046166 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package testingutil is a kitchen sink of utilities shared by Tast tests and Tast framework.

TODO(crbug.com/1019099): Reorganize utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Poll

func Poll(ctx context.Context, f func(context.Context) error, opts *PollOptions) error

Poll implements testing.Poll.

func PollBreak

func PollBreak(err error) error

PollBreak implements testing.PollBreak.

func Sleep

func Sleep(ctx context.Context, d time.Duration) error

Sleep implements testing.Sleep.

Types

type PollOptions

type PollOptions struct {
	// Timeout specifies the maximum time to poll.
	// Non-positive values indicate no timeout (although context deadlines will still be honored).
	Timeout time.Duration
	// Interval specifies how long to sleep between polling.
	// Non-positive values indicate that a reasonable default should be used.
	Interval time.Duration
}

PollOptions provides testing.PollOptions.

Jump to

Keyboard shortcuts

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