Documentation
¶
Overview ¶
package testsetups compresses common test setups and more complicated setups like performance and chaos tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeeperBlockTimeTest ¶
type KeeperBlockTimeTest struct {
Inputs KeeperBlockTimeTestInputs
TestReporter testreporters.KeeperBlockTimeTestReporter
// contains filtered or unexported fields
}
KeeperBlockTimeTest builds a test to check that chainlink nodes are able to upkeep a specified amount of Upkeep contracts within a certain block time
func NewKeeperBlockTimeTest ¶
func NewKeeperBlockTimeTest(inputs KeeperBlockTimeTestInputs) *KeeperBlockTimeTest
func (*KeeperBlockTimeTest) Run ¶
func (k *KeeperBlockTimeTest) Run()
func (*KeeperBlockTimeTest) Setup ¶
func (k *KeeperBlockTimeTest) Setup()
type KeeperBlockTimeTestInputs ¶
type KeeperBlockTimeTestInputs struct {
NumberOfContracts int // Number of upkeep contracts
Timeout time.Duration // Timeout for the test
BlockRange int64
BlockInterval int64
ContractDeployer contracts.ContractDeployer
ChainlinkNodes []client.Chainlink
Networks *client.Networks
LinkTokenContract contracts.LinkToken
}
KeeperBlockTimeTestInputs are all the required inputs for a Keeper Block Time Test
type PerformanceTest ¶
type PerformanceTest interface {
Setup()
Run()
}
PerformanceTest enables generic interaction and usage of performance tests
Click to show internal directories.
Click to hide internal directories.