e2e

package
v1.22.61 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package e2e provides testing infrastructure for end-to-end tests

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlagVars

type FlagVars struct {
	NetworkDir           string
	ReuseNetwork         bool
	RestartNetwork       bool
	StopNetwork          bool
	NetworkShutdownDelay string
}

FlagVars holds test configuration flags

func RegisterFlags

func RegisterFlags() *FlagVars

RegisterFlags registers e2e test flags and returns a FlagVars instance

type TestContext added in v1.16.56

type TestContext struct {
	// contains filtered or unexported fields
}

TestContext holds test context

func NewTestContext

func NewTestContext() *TestContext

NewTestContext creates a new test context

func (*TestContext) DefaultContext added in v1.16.56

func (tc *TestContext) DefaultContext() context.Context

DefaultContext returns the default context

type TestEnvironment

type TestEnvironment struct {
	// contains filtered or unexported fields
}

TestEnvironment holds test environment state

func NewTestEnvironment

func NewTestEnvironment(tc *TestContext, flagVars *FlagVars, network *tmpnet.Network) *TestEnvironment

NewTestEnvironment creates a new test environment

func (*TestEnvironment) GetNetwork

func (te *TestEnvironment) GetNetwork() *tmpnet.Network

GetNetwork returns the test network

func (*TestEnvironment) Marshal

func (te *TestEnvironment) Marshal() []byte

Marshal serializes the environment

func (*TestEnvironment) Unmarshal added in v1.16.56

func (te *TestEnvironment) Unmarshal(data []byte) error

Unmarshal deserializes environment bytes

Jump to

Keyboard shortcuts

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