testutil

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package testutil provides utilities for testing the sin-executor.

Index

Constants

View Source
const (
	// InterchainClient is the interchain execution client.
	InterchainClient contractTypeImpl = iota + 1 // InterchainClient
	// InterchainDB is the interchain database.
	InterchainDB // InterchainDB
	// InterchainModuleMock is the interchain module mock.
	InterchainModuleMock // InterchainModuleMock
	// InterchainApp is the interchain app mock.
	InterchainApp // InterchainApp
	// OptionsLib is the options library.
	OptionsLib // OptionsLib
	// ExecutionService is the execution service mock.
	ExecutionService // ExecutionService
	// GasOracleMock is the gas oracle mock.
	GasOracleMock // GasOracleMock
)

Variables

View Source
var AllContractTypes []contractTypeImpl

AllContractTypes is a list of all contract types. Since we use stringer and this is a testing library, instead of manually copying all these out we pull the names out of stringer. In order to make sure stringer is updated, we panic on any method called where the index is higher than the stringer array length.

Functions

This section is empty.

Types

type DeployManager

type DeployManager struct {
	*manager.DeployerManager
}

DeployManager wraps DeployManager and allows typed contract handles to be returned.

func NewDeployManager

func NewDeployManager(t *testing.T) *DeployManager

NewDeployManager creates a new DeployManager.

func (*DeployManager) GetExecutionService

GetExecutionService gets the execution service.

func (*DeployManager) GetInterchainAppMock

GetInterchainAppMock gets the interchain app mock.

func (*DeployManager) GetInterchainClient

GetInterchainClient gets the interchain client.

func (*DeployManager) GetInterchainDB

GetInterchainDB gets the interchain db.

func (*DeployManager) GetInterchainModuleMock

GetInterchainModuleMock gets the interchain module mock.

func (*DeployManager) GetOptionsLib

GetOptionsLib gets the options library.

Jump to

Keyboard shortcuts

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