mocks

package
v1.1.57 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logs

type Logs struct {
	mock.Mock
}

Logs is an autogenerated mock type for the Logs type

func NewLogs

func NewLogs(t interface {
	mock.TestingT
	Cleanup(func())
}) *Logs

NewLogs creates a new instance of Logs. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Logs) EXPECT

func (_m *Logs) EXPECT() *Logs_Expecter

func (*Logs) Export

func (_m *Logs) Export(releases []terra.Release, option ...logs.ExportOption) (map[terra.Release]artifacts.Location, error)

Export provides a mock function with given fields: releases, option

func (*Logs) Logs

func (_m *Logs) Logs(release terra.Release, option ...logs.LogsOption) error

Logs provides a mock function with given fields: release, option

type Logs_Expecter

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

func (*Logs_Expecter) Export

func (_e *Logs_Expecter) Export(releases interface{}, option ...interface{}) *Logs_Export_Call

Export is a helper method to define mock.On call

  • releases []terra.Release
  • option ...logs.ExportOption

func (*Logs_Expecter) Logs

func (_e *Logs_Expecter) Logs(release interface{}, option ...interface{}) *Logs_Logs_Call

Logs is a helper method to define mock.On call

  • release terra.Release
  • option ...logs.LogsOption

type Logs_Export_Call

type Logs_Export_Call struct {
	*mock.Call
}

Logs_Export_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Export'

func (*Logs_Export_Call) Return

func (*Logs_Export_Call) Run

func (_c *Logs_Export_Call) Run(run func(releases []terra.Release, option ...logs.ExportOption)) *Logs_Export_Call

func (*Logs_Export_Call) RunAndReturn

type Logs_Logs_Call

type Logs_Logs_Call struct {
	*mock.Call
}

Logs_Logs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Logs'

func (*Logs_Logs_Call) Return

func (_c *Logs_Logs_Call) Return(_a0 error) *Logs_Logs_Call

func (*Logs_Logs_Call) Run

func (_c *Logs_Logs_Call) Run(run func(release terra.Release, option ...logs.LogsOption)) *Logs_Logs_Call

func (*Logs_Logs_Call) RunAndReturn

func (_c *Logs_Logs_Call) RunAndReturn(run func(terra.Release, ...logs.LogsOption) error) *Logs_Logs_Call

Jump to

Keyboard shortcuts

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