Documentation ¶ Index ¶ func Run(description, testname string, adapter TestData, invariants []upgrades.Test, ...) type TestData 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. Source Files ¶ View all Source files disruption.go Click to show internal directories. Click to hide internal directories.