automock

package
v0.0.0-...-6105717 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func (*Client) Create

func (_m *Client) Create(ctx context.Context, obj runtime.Object, opts ...client.CreateOption) error

Create provides a mock function with given fields: ctx, obj, opts

func (*Client) Delete

func (_m *Client) Delete(ctx context.Context, obj runtime.Object, opts ...client.DeleteOption) error

Delete provides a mock function with given fields: ctx, obj, opts

func (*Client) DeleteAllOf

func (_m *Client) DeleteAllOf(ctx context.Context, obj runtime.Object, opts ...client.DeleteAllOfOption) error

DeleteAllOf provides a mock function with given fields: ctx, obj, opts

func (*Client) Get

func (_m *Client) Get(ctx context.Context, key types.NamespacedName, obj runtime.Object) error

Get provides a mock function with given fields: ctx, key, obj

func (*Client) List

func (_m *Client) List(ctx context.Context, list runtime.Object, opts ...client.ListOption) error

List provides a mock function with given fields: ctx, list, opts

func (*Client) Patch

func (_m *Client) Patch(ctx context.Context, obj runtime.Object, patch client.Patch, opts ...client.PatchOption) error

Patch provides a mock function with given fields: ctx, obj, patch, opts

func (*Client) Update

func (_m *Client) Update(ctx context.Context, obj runtime.Object, opts ...client.UpdateOption) error

Update provides a mock function with given fields: ctx, obj, opts

type Logger

type Logger struct {
	mock.Mock
}

Logger is an autogenerated mock type for the Logger type

func (*Logger) Enabled

func (_m *Logger) Enabled() bool

Enabled provides a mock function with given fields:

func (*Logger) Error

func (_m *Logger) Error(err error, msg string, keysAndValues ...interface{})

Error provides a mock function with given fields: err, msg, keysAndValues

func (*Logger) ExpectLoggedOnError

func (_m *Logger) ExpectLoggedOnError(err error, msg string, keysAndValues ...interface{})

func (*Logger) ExpectLoggedOnInfo

func (_m *Logger) ExpectLoggedOnInfo(msg string, keysAndValues ...interface{})

func (*Logger) ExpectLoggedWithValues

func (_m *Logger) ExpectLoggedWithValues(keysAndValues ...interface{})

func (*Logger) Info

func (_m *Logger) Info(msg string, keysAndValues ...interface{})

Info provides a mock function with given fields: msg, keysAndValues

func (*Logger) V

func (_m *Logger) V(level int) logr.InfoLogger

V provides a mock function with given fields: level

func (*Logger) WithName

func (_m *Logger) WithName(name string) logr.Logger

WithName provides a mock function with given fields: name

func (*Logger) WithValues

func (_m *Logger) WithValues(keysAndValues ...interface{}) logr.Logger

WithValues provides a mock function with given fields: keysAndValues

type StatusProvider

type StatusProvider struct {
	mock.Mock
}

StatusProvider is an autogenerated mock type for the StatusProvider type

func (*StatusProvider) GetExecutionsInProgress

func (_m *StatusProvider) GetExecutionsInProgress(suite v1alpha1.ClusterTestSuite) []v1alpha1.TestExecution

GetExecutionsInProgress provides a mock function with given fields: suite

func (*StatusProvider) MarkAsScheduled

func (_m *StatusProvider) MarkAsScheduled(status v1alpha1.TestSuiteStatus, testName string, testNs string, podName string) (v1alpha1.TestSuiteStatus, error)

MarkAsScheduled provides a mock function with given fields: status, testName, testNs, podName

Jump to

Keyboard shortcuts

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