testhelper

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package testhelper provides test suite helpers for cloudemu.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Suite

type Suite struct {
	Recorder *recorder.Recorder
	Metrics  *metrics.Collector
	Injector *inject.Injector
	Clock    *config.FakeClock
}

Suite holds shared test infrastructure.

func NewSuite

func NewSuite() *Suite

NewSuite creates a new test suite with shared infrastructure.

func (*Suite) AWSProvider

func (s *Suite) AWSProvider(opts ...config.Option) *aws.Provider

AWSProvider creates an AWS provider configured with the suite's clock.

func (*Suite) AzureProvider

func (s *Suite) AzureProvider(opts ...config.Option) *azure.Provider

AzureProvider creates an Azure provider configured with the suite's clock.

func (*Suite) GCPProvider

func (s *Suite) GCPProvider(opts ...config.Option) *gcp.Provider

GCPProvider creates a GCP provider configured with the suite's clock.

func (*Suite) Reset

func (s *Suite) Reset()

Reset resets all shared infrastructure.

Jump to

Keyboard shortcuts

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