mock

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock provides all methods required to simulate a HCloud provider environment

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTestEnv

type MockTestEnv struct {
	ChartApplier   *mockkubernetes.MockChartApplier
	Client         *mockclient.MockClient
	MockController *gomock.Controller
	StatusWriter   *mockclient.MockStatusWriter
}

MockTestEnv represents the test environment for testing HCloud API calls

func NewMockTestEnv

func NewMockTestEnv() MockTestEnv

NewMockTestEnv generates a new, unconfigured test environment for testing purposes.

func (*MockTestEnv) Teardown

func (env *MockTestEnv) Teardown()

Teardown shuts down the test environment

Jump to

Keyboard shortcuts

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