tests

package
v0.2103.7 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package tests contains common tests for runtime host implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestProvisioner

func TestProvisioner(
	t *testing.T,
	cfg host.Config,
	factory func() (host.Provisioner, error),
	extraTests []TestCase,
)

Types

type TestCase

type TestCase struct {
	// Name is a test name used with t.Run.
	Name string

	// Fn is the actual test function.
	Fn func(*testing.T, host.Config, host.Provisioner)
}

TestCase is a test case descriptor.

Jump to

Keyboard shortcuts

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