testutil

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetParams

type GetParams struct {
	Baz string `json:"baz"`
}

type MockResource

type MockResource struct {
	mock.Mock
}

MockResource is an autogenerated mock type for the Resource type

func NewMockResource

func NewMockResource(t mockConstructorTestingTNewMockResource) *MockResource

NewMockResource creates a new instance of MockResource. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockResource) Archive

func (_m *MockResource) Archive(_a0 context.Context, _a1 *Source) (sdk.Archive, error)

Archive provides a mock function with given fields: _a0, _a1

func (*MockResource) Check

func (_m *MockResource) Check(_a0 context.Context, _a1 *Source, _a2 *Version) ([]Version, error)

Check provides a mock function with given fields: _a0, _a1, _a2

func (*MockResource) Close

func (_m *MockResource) Close(_a0 context.Context) error

Close provides a mock function with given fields: _a0

func (*MockResource) In

func (_m *MockResource) In(_a0 context.Context, _a1 *Source, _a2 *Version, _a3 string, _a4 *GetParams) ([]sdk.Metadata, error)

In provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

func (*MockResource) Initialize

func (_m *MockResource) Initialize(_a0 context.Context, _a1 *Source) error

Initialize provides a mock function with given fields: _a0, _a1

func (*MockResource) Out

func (_m *MockResource) Out(_a0 context.Context, _a1 *Source, _a2 string, _a3 *PutParams) (Version, []sdk.Metadata, error)

Out provides a mock function with given fields: _a0, _a1, _a2, _a3

type PutParams

type PutParams struct {
	Bar string `json:"bar"`
}

type Source

type Source struct {
	Archive *archive.Config `json:"archive,omitempty"`
}

type Version

type Version struct {
	Qux string `json:"qux"`
}

Jump to

Keyboard shortcuts

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