Help us shape the future of Go! Take the 2026 Go Developer Survey

e2e

package
v1.36.185 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 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