testsetups

package
v1.0.50 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: MIT Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

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