test_setup

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package test_setup implements Setup and Teardown methods to be used in tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTests

func RunTests(t *testing.T, x Testable)

RunTests runs all "Test*" functions that are member of x as subtests of the current test. Setup is run before the test function and Teardown is run after each test. x must extend Testable interface by implementing Setup and TearDown methods.

Types

type Testable

type Testable interface {
	Setup(*testing.T)
	Teardown(*testing.T)
}

Testable defines Tester's methods for use in this package.

Jump to

Keyboard shortcuts

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