disruption

package
v0.0.0-...-e27bbb9 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(description, testname string, adapter TestData, invariants []upgrades.Test, fn func())

Run executes the provided fn in a test context, ensuring that invariants are preserved while the test is being executed. Description is used to populate the JUnit suite name, and testname is used to define the overall test that will be run.

Types

type TestData

type TestData struct {
	UpgradeType    upgrades.UpgradeType
	UpgradeContext upgrades.UpgradeContext
}

TestData is passed to the invariant tests executed during the upgrade. The default UpgradeType is MasterUpgrade.

Jump to

Keyboard shortcuts

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