tests

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package tests is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTestComponent

type MockTestComponent[I any, O pulumi.ComponentResource] struct {
	// contains filtered or unexported fields
}

MockTestComponent is a mock of TestComponent interface.

func NewMockTestComponent

func NewMockTestComponent[I any, O pulumi.ComponentResource](ctrl *gomock.Controller) *MockTestComponent[I, O]

NewMockTestComponent creates a new mock instance.

func (*MockTestComponent[I, O]) Annotate

func (m *MockTestComponent[I, O]) Annotate(arg0 infer.Annotator)

Annotate mocks base method.

func (*MockTestComponent[I, O]) Construct

func (m *MockTestComponent[I, O]) Construct(ctx *pulumi.Context, name, typ string, args I, opts pulumi.ResourceOption) (O, error)

Construct mocks base method.

func (*MockTestComponent[I, O]) EXPECT

func (m *MockTestComponent[I, O]) EXPECT() *MockTestComponentMockRecorder[I, O]

EXPECT returns an object that allows the caller to indicate expected use.

type MockTestComponentAnnotateCall

type MockTestComponentAnnotateCall[I any, O pulumi.ComponentResource] struct {
	*gomock.Call
}

MockTestComponentAnnotateCall wrap *gomock.Call

func (*MockTestComponentAnnotateCall[I, O]) Do

Do rewrite *gomock.Call.Do

func (*MockTestComponentAnnotateCall[I, O]) DoAndReturn

func (c *MockTestComponentAnnotateCall[I, O]) DoAndReturn(f func(infer.Annotator)) *MockTestComponentAnnotateCall[I, O]

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTestComponentAnnotateCall[I, O]) Return

Return rewrite *gomock.Call.Return

type MockTestComponentConstructCall

type MockTestComponentConstructCall[I any, O pulumi.ComponentResource] struct {
	*gomock.Call
}

MockTestComponentConstructCall wrap *gomock.Call

func (*MockTestComponentConstructCall[I, O]) Do

Do rewrite *gomock.Call.Do

func (*MockTestComponentConstructCall[I, O]) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTestComponentConstructCall[I, O]) Return

func (c *MockTestComponentConstructCall[I, O]) Return(arg0 O, arg1 error) *MockTestComponentConstructCall[I, O]

Return rewrite *gomock.Call.Return

type MockTestComponentMockRecorder

type MockTestComponentMockRecorder[I any, O pulumi.ComponentResource] struct {
	// contains filtered or unexported fields
}

MockTestComponentMockRecorder is the mock recorder for MockTestComponent.

func (*MockTestComponentMockRecorder[I, O]) Annotate

func (mr *MockTestComponentMockRecorder[I, O]) Annotate(arg0 any) *MockTestComponentAnnotateCall[I, O]

Annotate indicates an expected call of Annotate.

func (*MockTestComponentMockRecorder[I, O]) Construct

func (mr *MockTestComponentMockRecorder[I, O]) Construct(ctx, name, typ, args, opts any) *MockTestComponentConstructCall[I, O]

Construct indicates an expected call of Construct.

type MockTestConfig

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

MockTestConfig is a mock of TestConfig interface.

func NewMockTestConfig

func NewMockTestConfig(ctrl *gomock.Controller) *MockTestConfig

NewMockTestConfig creates a new mock instance.

func (*MockTestConfig) Check

Check mocks base method.

func (*MockTestConfig) Configure

func (m *MockTestConfig) Configure(ctx context.Context) error

Configure mocks base method.

func (*MockTestConfig) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockTestConfigCheckCall

type MockTestConfigCheckCall struct {
	*gomock.Call
}

MockTestConfigCheckCall wrap *gomock.Call

func (*MockTestConfigCheckCall) Do

Do rewrite *gomock.Call.Do

func (*MockTestConfigCheckCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTestConfigCheckCall) Return

Return rewrite *gomock.Call.Return

type MockTestConfigConfigureCall

type MockTestConfigConfigureCall struct {
	*gomock.Call
}

MockTestConfigConfigureCall wrap *gomock.Call

func (*MockTestConfigConfigureCall) Do

Do rewrite *gomock.Call.Do

func (*MockTestConfigConfigureCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTestConfigConfigureCall) Return

Return rewrite *gomock.Call.Return

type MockTestConfigMockRecorder

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

MockTestConfigMockRecorder is the mock recorder for MockTestConfig.

func (*MockTestConfigMockRecorder) Check

Check indicates an expected call of Check.

func (*MockTestConfigMockRecorder) Configure

Configure indicates an expected call of Configure.

type MockTestFunction

type MockTestFunction[I any, O any] struct {
	// contains filtered or unexported fields
}

MockTestFunction is a mock of TestFunction interface.

func NewMockTestFunction

func NewMockTestFunction[I any, O any](ctrl *gomock.Controller) *MockTestFunction[I, O]

NewMockTestFunction creates a new mock instance.

func (*MockTestFunction[I, O]) Annotate

func (m *MockTestFunction[I, O]) Annotate(arg0 infer.Annotator)

Annotate mocks base method.

func (*MockTestFunction[I, O]) EXPECT

func (m *MockTestFunction[I, O]) EXPECT() *MockTestFunctionMockRecorder[I, O]

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTestFunction[I, O]) Invoke

func (m *MockTestFunction[I, O]) Invoke(ctx context.Context, req infer.FunctionRequest[I]) (infer.FunctionResponse[O], error)

Invoke mocks base method.

type MockTestFunctionAnnotateCall

type MockTestFunctionAnnotateCall[I any, O any] struct {
	*gomock.Call
}

MockTestFunctionAnnotateCall wrap *gomock.Call

func (*MockTestFunctionAnnotateCall[I, O]) Do

Do rewrite *gomock.Call.Do

func (*MockTestFunctionAnnotateCall[I, O]) DoAndReturn

func (c *MockTestFunctionAnnotateCall[I, O]) DoAndReturn(f func(infer.Annotator)) *MockTestFunctionAnnotateCall[I, O]

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTestFunctionAnnotateCall[I, O]) Return

Return rewrite *gomock.Call.Return

type MockTestFunctionInvokeCall

type MockTestFunctionInvokeCall[I any, O any] struct {
	*gomock.Call
}

MockTestFunctionInvokeCall wrap *gomock.Call

func (*MockTestFunctionInvokeCall[I, O]) Do

Do rewrite *gomock.Call.Do

func (*MockTestFunctionInvokeCall[I, O]) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTestFunctionInvokeCall[I, O]) Return

Return rewrite *gomock.Call.Return

type MockTestFunctionMockRecorder

type MockTestFunctionMockRecorder[I any, O any] struct {
	// contains filtered or unexported fields
}

MockTestFunctionMockRecorder is the mock recorder for MockTestFunction.

func (*MockTestFunctionMockRecorder[I, O]) Annotate

func (mr *MockTestFunctionMockRecorder[I, O]) Annotate(arg0 any) *MockTestFunctionAnnotateCall[I, O]

Annotate indicates an expected call of Annotate.

func (*MockTestFunctionMockRecorder[I, O]) Invoke

func (mr *MockTestFunctionMockRecorder[I, O]) Invoke(ctx, req any) *MockTestFunctionInvokeCall[I, O]

Invoke indicates an expected call of Invoke.

type MockTestHost

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

MockTestHost is a mock of TestHost interface.

func NewMockTestHost

func NewMockTestHost(ctrl *gomock.Controller) *MockTestHost

NewMockTestHost creates a new mock instance.

func (*MockTestHost) Call

Call mocks base method.

func (*MockTestHost) Construct

Construct mocks base method.

func (*MockTestHost) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockTestHostCallCall

type MockTestHostCallCall struct {
	*gomock.Call
}

MockTestHostCallCall wrap *gomock.Call

func (*MockTestHostCallCall) Do

Do rewrite *gomock.Call.Do

func (*MockTestHostCallCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTestHostCallCall) Return

Return rewrite *gomock.Call.Return

type MockTestHostConstructCall

type MockTestHostConstructCall struct {
	*gomock.Call
}

MockTestHostConstructCall wrap *gomock.Call

func (*MockTestHostConstructCall) Do

Do rewrite *gomock.Call.Do

func (*MockTestHostConstructCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTestHostConstructCall) Return

Return rewrite *gomock.Call.Return

type MockTestHostMockRecorder

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

MockTestHostMockRecorder is the mock recorder for MockTestHost.

func (*MockTestHostMockRecorder) Call

func (mr *MockTestHostMockRecorder) Call(arg0, arg1, arg2 any) *MockTestHostCallCall

Call indicates an expected call of Call.

func (*MockTestHostMockRecorder) Construct

func (mr *MockTestHostMockRecorder) Construct(arg0, arg1, arg2 any) *MockTestHostConstructCall

Construct indicates an expected call of Construct.

type MockTestResource

type MockTestResource[I any, O any] struct {
	// contains filtered or unexported fields
}

MockTestResource is a mock of TestResource interface.

func NewMockTestResource

func NewMockTestResource[I any, O any](ctrl *gomock.Controller) *MockTestResource[I, O]

NewMockTestResource creates a new mock instance.

func (*MockTestResource[I, O]) Annotate

func (m *MockTestResource[I, O]) Annotate(arg0 infer.Annotator)

Annotate mocks base method.

func (*MockTestResource[I, O]) Check

func (m *MockTestResource[I, O]) Check(ctx context.Context, req infer.CheckRequest) (infer.CheckResponse[I], error)

Check mocks base method.

func (*MockTestResource[I, O]) Create

func (m *MockTestResource[I, O]) Create(ctx context.Context, req infer.CreateRequest[I]) (infer.CreateResponse[O], error)

Create mocks base method.

func (*MockTestResource[I, O]) Delete

func (m *MockTestResource[I, O]) Delete(ctx context.Context, req infer.DeleteRequest[O]) (infer.DeleteResponse, error)

Delete mocks base method.

func (*MockTestResource[I, O]) Diff

func (m *MockTestResource[I, O]) Diff(ctx context.Context, req infer.DiffRequest[I, O]) (infer.DiffResponse, error)

Diff mocks base method.

func (*MockTestResource[I, O]) EXPECT

func (m *MockTestResource[I, O]) EXPECT() *MockTestResourceMockRecorder[I, O]

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTestResource[I, O]) Read

func (m *MockTestResource[I, O]) Read(ctx context.Context, req infer.ReadRequest[I, O]) (infer.ReadResponse[I, O], error)

Read mocks base method.

func (*MockTestResource[I, O]) Update

func (m *MockTestResource[I, O]) Update(ctx context.Context, req infer.UpdateRequest[I, O]) (infer.UpdateResponse[O], error)

Update mocks base method.

type MockTestResourceAnnotateCall

type MockTestResourceAnnotateCall[I any, O any] struct {
	*gomock.Call
}

MockTestResourceAnnotateCall wrap *gomock.Call

func (*MockTestResourceAnnotateCall[I, O]) Do

Do rewrite *gomock.Call.Do

func (*MockTestResourceAnnotateCall[I, O]) DoAndReturn

func (c *MockTestResourceAnnotateCall[I, O]) DoAndReturn(f func(infer.Annotator)) *MockTestResourceAnnotateCall[I, O]

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTestResourceAnnotateCall[I, O]) Return

Return rewrite *gomock.Call.Return

type MockTestResourceCheckCall

type MockTestResourceCheckCall[I any, O any] struct {
	*gomock.Call
}

MockTestResourceCheckCall wrap *gomock.Call

func (*MockTestResourceCheckCall[I, O]) Do

Do rewrite *gomock.Call.Do

func (*MockTestResourceCheckCall[I, O]) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTestResourceCheckCall[I, O]) Return

func (c *MockTestResourceCheckCall[I, O]) Return(arg0 infer.CheckResponse[I], arg1 error) *MockTestResourceCheckCall[I, O]

Return rewrite *gomock.Call.Return

type MockTestResourceCreateCall

type MockTestResourceCreateCall[I any, O any] struct {
	*gomock.Call
}

MockTestResourceCreateCall wrap *gomock.Call

func (*MockTestResourceCreateCall[I, O]) Do

Do rewrite *gomock.Call.Do

func (*MockTestResourceCreateCall[I, O]) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTestResourceCreateCall[I, O]) Return

func (c *MockTestResourceCreateCall[I, O]) Return(arg0 infer.CreateResponse[O], arg1 error) *MockTestResourceCreateCall[I, O]

Return rewrite *gomock.Call.Return

type MockTestResourceDeleteCall

type MockTestResourceDeleteCall[I any, O any] struct {
	*gomock.Call
}

MockTestResourceDeleteCall wrap *gomock.Call

func (*MockTestResourceDeleteCall[I, O]) Do

Do rewrite *gomock.Call.Do

func (*MockTestResourceDeleteCall[I, O]) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTestResourceDeleteCall[I, O]) Return

Return rewrite *gomock.Call.Return

type MockTestResourceDiffCall

type MockTestResourceDiffCall[I any, O any] struct {
	*gomock.Call
}

MockTestResourceDiffCall wrap *gomock.Call

func (*MockTestResourceDiffCall[I, O]) Do

Do rewrite *gomock.Call.Do

func (*MockTestResourceDiffCall[I, O]) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTestResourceDiffCall[I, O]) Return

func (c *MockTestResourceDiffCall[I, O]) Return(arg0 infer.DiffResponse, arg1 error) *MockTestResourceDiffCall[I, O]

Return rewrite *gomock.Call.Return

type MockTestResourceMockRecorder

type MockTestResourceMockRecorder[I any, O any] struct {
	// contains filtered or unexported fields
}

MockTestResourceMockRecorder is the mock recorder for MockTestResource.

func (*MockTestResourceMockRecorder[I, O]) Annotate

func (mr *MockTestResourceMockRecorder[I, O]) Annotate(arg0 any) *MockTestResourceAnnotateCall[I, O]

Annotate indicates an expected call of Annotate.

func (*MockTestResourceMockRecorder[I, O]) Check

func (mr *MockTestResourceMockRecorder[I, O]) Check(ctx, req any) *MockTestResourceCheckCall[I, O]

Check indicates an expected call of Check.

func (*MockTestResourceMockRecorder[I, O]) Create

func (mr *MockTestResourceMockRecorder[I, O]) Create(ctx, req any) *MockTestResourceCreateCall[I, O]

Create indicates an expected call of Create.

func (*MockTestResourceMockRecorder[I, O]) Delete

func (mr *MockTestResourceMockRecorder[I, O]) Delete(ctx, req any) *MockTestResourceDeleteCall[I, O]

Delete indicates an expected call of Delete.

func (*MockTestResourceMockRecorder[I, O]) Diff

func (mr *MockTestResourceMockRecorder[I, O]) Diff(ctx, req any) *MockTestResourceDiffCall[I, O]

Diff indicates an expected call of Diff.

func (*MockTestResourceMockRecorder[I, O]) Read

func (mr *MockTestResourceMockRecorder[I, O]) Read(ctx, req any) *MockTestResourceReadCall[I, O]

Read indicates an expected call of Read.

func (*MockTestResourceMockRecorder[I, O]) Update

func (mr *MockTestResourceMockRecorder[I, O]) Update(ctx, req any) *MockTestResourceUpdateCall[I, O]

Update indicates an expected call of Update.

type MockTestResourceReadCall

type MockTestResourceReadCall[I any, O any] struct {
	*gomock.Call
}

MockTestResourceReadCall wrap *gomock.Call

func (*MockTestResourceReadCall[I, O]) Do

Do rewrite *gomock.Call.Do

func (*MockTestResourceReadCall[I, O]) DoAndReturn

func (c *MockTestResourceReadCall[I, O]) DoAndReturn(f func(context.Context, infer.ReadRequest[I, O]) (infer.ReadResponse[I, O], error)) *MockTestResourceReadCall[I, O]

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTestResourceReadCall[I, O]) Return

func (c *MockTestResourceReadCall[I, O]) Return(arg0 infer.ReadResponse[I, O], arg1 error) *MockTestResourceReadCall[I, O]

Return rewrite *gomock.Call.Return

type MockTestResourceUpdateCall

type MockTestResourceUpdateCall[I any, O any] struct {
	*gomock.Call
}

MockTestResourceUpdateCall wrap *gomock.Call

func (*MockTestResourceUpdateCall[I, O]) Do

Do rewrite *gomock.Call.Do

func (*MockTestResourceUpdateCall[I, O]) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTestResourceUpdateCall[I, O]) Return

func (c *MockTestResourceUpdateCall[I, O]) Return(arg0 infer.UpdateResponse[O], arg1 error) *MockTestResourceUpdateCall[I, O]

Return rewrite *gomock.Call.Return

type TestComponent

type TestComponent[I any, O pulumi.ComponentResource] interface {
	infer.Annotated
	infer.ComponentResource[I, O]
}

type TestConfig

type TestConfig interface {
	infer.CustomConfigure

	// TODO: We can't use infer.CustomCheck here because we expect the config
	// type C to always be its own inputs, which prevents us from providing a
	// mock config object that implements Check[C]. Something similar to
	// Resource would be more ergonomic (a type R which can operate on a
	// different input type I).
	Check(ctx context.Context, req infer.CheckRequest) (infer.CheckResponse[*MockTestConfig], error)
}

type TestFunction

type TestFunction[I, O any] interface {
	infer.Annotated
	infer.Fn[I, O]
}

type TestHost

type TestHost interface {
	pgp.Host
}

type TestResource

type TestResource[I, O any] interface {
	infer.Annotated
	infer.CustomCheck[I]
	infer.CustomCreate[I, O]
	infer.CustomDelete[O]
	infer.CustomDiff[I, O]
	infer.CustomRead[I, O]
	infer.CustomUpdate[I, O]
}

Jump to

Keyboard shortcuts

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