fixture

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Overview

Package fixture provides ti50 devboard related fixtures.

Package fixture provides ti50 devboard related fixtures.

Index

Constants

View Source
const (
	// DevBoardService arg name for the service's host:port pair and also the name of the fixture.
	DevBoardService = "devboardsvc"

	// Ti50 fixture flashes a ti50 image.
	Ti50 = "ti50"

	// SystemTestAuto fixture flashes a system_test_auto image.
	SystemTestAuto = "systemTestAuto"
)
View Source
const (
	// BuildURL is the arg name for the gs directory of the build or a local directory containing the imageBin.
	BuildURL = "buildurl"

	// Ti50Image fixture downloads the ti50 image bin.
	Ti50Image = "ti50Image"

	// SystemTestAutoImage fixture downloads the system_test_auto image bin.
	SystemTestAutoImage = "systemTestAutoImage"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageValue

type ImageValue struct {
	// contains filtered or unexported fields
}

ImageValue provides access to a image binary.

func (*ImageValue) ImagePath

func (v *ImageValue) ImagePath() string

ImagePath returns the path to the image binary.

func (*ImageValue) ImageType

func (v *ImageValue) ImageType() string

ImageType returns the type of the image binary.

type Value

type Value struct {
	ImagePath string
	// contains filtered or unexported fields
}

Value allows tests to obtain a ti50 devboard.

func (*Value) DevBoard

func (v *Value) DevBoard(ctx context.Context, bufLen int, readTimeout time.Duration) (ti50.DevBoard, error)

DevBoard connects to devboardsvc server and returns the DevBoard instance.

Jump to

Keyboard shortcuts

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