Documentation
¶
Overview ¶
Package tests is a generated GoMock package.
Index ¶
- type MockTestComponent
- type MockTestComponentAnnotateCall
- func (c *MockTestComponentAnnotateCall[I, O]) Do(f func(infer.Annotator)) *MockTestComponentAnnotateCall[I, O]
- func (c *MockTestComponentAnnotateCall[I, O]) DoAndReturn(f func(infer.Annotator)) *MockTestComponentAnnotateCall[I, O]
- func (c *MockTestComponentAnnotateCall[I, O]) Return() *MockTestComponentAnnotateCall[I, O]
- type MockTestComponentConstructCall
- func (c *MockTestComponentConstructCall[I, O]) Do(f func(*pulumi.Context, string, string, I, pulumi.ResourceOption) (O, error)) *MockTestComponentConstructCall[I, O]
- func (c *MockTestComponentConstructCall[I, O]) DoAndReturn(f func(*pulumi.Context, string, string, I, pulumi.ResourceOption) (O, error)) *MockTestComponentConstructCall[I, O]
- func (c *MockTestComponentConstructCall[I, O]) Return(arg0 O, arg1 error) *MockTestComponentConstructCall[I, O]
- type MockTestComponentMockRecorder
- type MockTestConfig
- type MockTestConfigCheckCall
- type MockTestConfigConfigureCall
- type MockTestConfigMockRecorder
- type MockTestFunction
- type MockTestFunctionAnnotateCall
- func (c *MockTestFunctionAnnotateCall[I, O]) Do(f func(infer.Annotator)) *MockTestFunctionAnnotateCall[I, O]
- func (c *MockTestFunctionAnnotateCall[I, O]) DoAndReturn(f func(infer.Annotator)) *MockTestFunctionAnnotateCall[I, O]
- func (c *MockTestFunctionAnnotateCall[I, O]) Return() *MockTestFunctionAnnotateCall[I, O]
- type MockTestFunctionInvokeCall
- func (c *MockTestFunctionInvokeCall[I, O]) Do(...) *MockTestFunctionInvokeCall[I, O]
- func (c *MockTestFunctionInvokeCall[I, O]) DoAndReturn(...) *MockTestFunctionInvokeCall[I, O]
- func (c *MockTestFunctionInvokeCall[I, O]) Return(resp infer.FunctionResponse[O], err error) *MockTestFunctionInvokeCall[I, O]
- type MockTestFunctionMockRecorder
- type MockTestHost
- func (m *MockTestHost) Call(arg0 context.Context, arg1 goprovider.CallRequest, arg2 pprovider.CallFunc) (goprovider.CallResponse, error)
- func (m *MockTestHost) Construct(arg0 context.Context, arg1 goprovider.ConstructRequest, ...) (goprovider.ConstructResponse, error)
- func (m *MockTestHost) EXPECT() *MockTestHostMockRecorder
- type MockTestHostCallCall
- type MockTestHostConstructCall
- type MockTestHostMockRecorder
- type MockTestResource
- func (m *MockTestResource[I, O]) Annotate(arg0 infer.Annotator)
- func (m *MockTestResource[I, O]) Check(ctx context.Context, req infer.CheckRequest) (infer.CheckResponse[I], error)
- func (m *MockTestResource[I, O]) Create(ctx context.Context, req infer.CreateRequest[I]) (infer.CreateResponse[O], error)
- func (m *MockTestResource[I, O]) Delete(ctx context.Context, req infer.DeleteRequest[O]) (infer.DeleteResponse, error)
- func (m *MockTestResource[I, O]) Diff(ctx context.Context, req infer.DiffRequest[I, O]) (infer.DiffResponse, error)
- func (m *MockTestResource[I, O]) EXPECT() *MockTestResourceMockRecorder[I, O]
- func (m *MockTestResource[I, O]) Read(ctx context.Context, req infer.ReadRequest[I, O]) (infer.ReadResponse[I, O], error)
- func (m *MockTestResource[I, O]) Update(ctx context.Context, req infer.UpdateRequest[I, O]) (infer.UpdateResponse[O], error)
- type MockTestResourceAnnotateCall
- func (c *MockTestResourceAnnotateCall[I, O]) Do(f func(infer.Annotator)) *MockTestResourceAnnotateCall[I, O]
- func (c *MockTestResourceAnnotateCall[I, O]) DoAndReturn(f func(infer.Annotator)) *MockTestResourceAnnotateCall[I, O]
- func (c *MockTestResourceAnnotateCall[I, O]) Return() *MockTestResourceAnnotateCall[I, O]
- type MockTestResourceCheckCall
- func (c *MockTestResourceCheckCall[I, O]) Do(f func(context.Context, infer.CheckRequest) (infer.CheckResponse[I], error)) *MockTestResourceCheckCall[I, O]
- func (c *MockTestResourceCheckCall[I, O]) DoAndReturn(f func(context.Context, infer.CheckRequest) (infer.CheckResponse[I], error)) *MockTestResourceCheckCall[I, O]
- func (c *MockTestResourceCheckCall[I, O]) Return(arg0 infer.CheckResponse[I], arg1 error) *MockTestResourceCheckCall[I, O]
- type MockTestResourceCreateCall
- func (c *MockTestResourceCreateCall[I, O]) Do(...) *MockTestResourceCreateCall[I, O]
- func (c *MockTestResourceCreateCall[I, O]) DoAndReturn(...) *MockTestResourceCreateCall[I, O]
- func (c *MockTestResourceCreateCall[I, O]) Return(arg0 infer.CreateResponse[O], arg1 error) *MockTestResourceCreateCall[I, O]
- type MockTestResourceDeleteCall
- func (c *MockTestResourceDeleteCall[I, O]) Do(f func(context.Context, infer.DeleteRequest[O]) (infer.DeleteResponse, error)) *MockTestResourceDeleteCall[I, O]
- func (c *MockTestResourceDeleteCall[I, O]) DoAndReturn(f func(context.Context, infer.DeleteRequest[O]) (infer.DeleteResponse, error)) *MockTestResourceDeleteCall[I, O]
- func (c *MockTestResourceDeleteCall[I, O]) Return(arg0 infer.DeleteResponse, arg1 error) *MockTestResourceDeleteCall[I, O]
- type MockTestResourceDiffCall
- func (c *MockTestResourceDiffCall[I, O]) Do(f func(context.Context, infer.DiffRequest[I, O]) (infer.DiffResponse, error)) *MockTestResourceDiffCall[I, O]
- func (c *MockTestResourceDiffCall[I, O]) DoAndReturn(f func(context.Context, infer.DiffRequest[I, O]) (infer.DiffResponse, error)) *MockTestResourceDiffCall[I, O]
- func (c *MockTestResourceDiffCall[I, O]) Return(arg0 infer.DiffResponse, arg1 error) *MockTestResourceDiffCall[I, O]
- type MockTestResourceMockRecorder
- func (mr *MockTestResourceMockRecorder[I, O]) Annotate(arg0 any) *MockTestResourceAnnotateCall[I, O]
- func (mr *MockTestResourceMockRecorder[I, O]) Check(ctx, req any) *MockTestResourceCheckCall[I, O]
- func (mr *MockTestResourceMockRecorder[I, O]) Create(ctx, req any) *MockTestResourceCreateCall[I, O]
- func (mr *MockTestResourceMockRecorder[I, O]) Delete(ctx, req any) *MockTestResourceDeleteCall[I, O]
- func (mr *MockTestResourceMockRecorder[I, O]) Diff(ctx, req any) *MockTestResourceDiffCall[I, O]
- func (mr *MockTestResourceMockRecorder[I, O]) Read(ctx, req any) *MockTestResourceReadCall[I, O]
- func (mr *MockTestResourceMockRecorder[I, O]) Update(ctx, req any) *MockTestResourceUpdateCall[I, O]
- type MockTestResourceReadCall
- type MockTestResourceUpdateCall
- func (c *MockTestResourceUpdateCall[I, O]) Do(...) *MockTestResourceUpdateCall[I, O]
- func (c *MockTestResourceUpdateCall[I, O]) DoAndReturn(...) *MockTestResourceUpdateCall[I, O]
- func (c *MockTestResourceUpdateCall[I, O]) Return(arg0 infer.UpdateResponse[O], arg1 error) *MockTestResourceUpdateCall[I, O]
- type TestComponent
- type TestConfig
- type TestFunction
- type TestHost
- type TestResource
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 ¶
func (c *MockTestComponentAnnotateCall[I, O]) Do(f func(infer.Annotator)) *MockTestComponentAnnotateCall[I, O]
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 ¶
func (c *MockTestComponentAnnotateCall[I, O]) Return() *MockTestComponentAnnotateCall[I, O]
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 ¶
func (c *MockTestComponentConstructCall[I, O]) Do(f func(*pulumi.Context, string, string, I, pulumi.ResourceOption) (O, error)) *MockTestComponentConstructCall[I, O]
Do rewrite *gomock.Call.Do
func (*MockTestComponentConstructCall[I, O]) DoAndReturn ¶
func (c *MockTestComponentConstructCall[I, O]) DoAndReturn(f func(*pulumi.Context, string, string, I, pulumi.ResourceOption) (O, error)) *MockTestComponentConstructCall[I, O]
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 ¶
func (m *MockTestConfig) Check(ctx context.Context, req infer.CheckRequest) (infer.CheckResponse[*MockTestConfig], error)
Check mocks base method.
func (*MockTestConfig) Configure ¶
func (m *MockTestConfig) Configure(ctx context.Context) error
Configure mocks base method.
func (*MockTestConfig) EXPECT ¶
func (m *MockTestConfig) EXPECT() *MockTestConfigMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockTestConfigCheckCall ¶
MockTestConfigCheckCall wrap *gomock.Call
func (*MockTestConfigCheckCall) Do ¶
func (c *MockTestConfigCheckCall) Do(f func(context.Context, infer.CheckRequest) (infer.CheckResponse[*MockTestConfig], error)) *MockTestConfigCheckCall
Do rewrite *gomock.Call.Do
func (*MockTestConfigCheckCall) DoAndReturn ¶
func (c *MockTestConfigCheckCall) DoAndReturn(f func(context.Context, infer.CheckRequest) (infer.CheckResponse[*MockTestConfig], error)) *MockTestConfigCheckCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTestConfigCheckCall) Return ¶
func (c *MockTestConfigCheckCall) Return(arg0 infer.CheckResponse[*MockTestConfig], arg1 error) *MockTestConfigCheckCall
Return rewrite *gomock.Call.Return
type MockTestConfigConfigureCall ¶
MockTestConfigConfigureCall wrap *gomock.Call
func (*MockTestConfigConfigureCall) Do ¶
func (c *MockTestConfigConfigureCall) Do(f func(context.Context) error) *MockTestConfigConfigureCall
Do rewrite *gomock.Call.Do
func (*MockTestConfigConfigureCall) DoAndReturn ¶
func (c *MockTestConfigConfigureCall) DoAndReturn(f func(context.Context) error) *MockTestConfigConfigureCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTestConfigConfigureCall) Return ¶
func (c *MockTestConfigConfigureCall) Return(arg0 error) *MockTestConfigConfigureCall
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 ¶
func (mr *MockTestConfigMockRecorder) Check(ctx, req any) *MockTestConfigCheckCall
Check indicates an expected call of Check.
func (*MockTestConfigMockRecorder) Configure ¶
func (mr *MockTestConfigMockRecorder) Configure(ctx any) *MockTestConfigConfigureCall
Configure indicates an expected call of Configure.
type MockTestFunction ¶
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 ¶
MockTestFunctionAnnotateCall wrap *gomock.Call
func (*MockTestFunctionAnnotateCall[I, O]) Do ¶
func (c *MockTestFunctionAnnotateCall[I, O]) Do(f func(infer.Annotator)) *MockTestFunctionAnnotateCall[I, O]
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 ¶
func (c *MockTestFunctionAnnotateCall[I, O]) Return() *MockTestFunctionAnnotateCall[I, O]
Return rewrite *gomock.Call.Return
type MockTestFunctionInvokeCall ¶
MockTestFunctionInvokeCall wrap *gomock.Call
func (*MockTestFunctionInvokeCall[I, O]) Do ¶
func (c *MockTestFunctionInvokeCall[I, O]) Do(f func(context.Context, infer.FunctionRequest[I]) (infer.FunctionResponse[O], error)) *MockTestFunctionInvokeCall[I, O]
Do rewrite *gomock.Call.Do
func (*MockTestFunctionInvokeCall[I, O]) DoAndReturn ¶
func (c *MockTestFunctionInvokeCall[I, O]) DoAndReturn(f func(context.Context, infer.FunctionRequest[I]) (infer.FunctionResponse[O], error)) *MockTestFunctionInvokeCall[I, O]
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTestFunctionInvokeCall[I, O]) Return ¶
func (c *MockTestFunctionInvokeCall[I, O]) Return(resp infer.FunctionResponse[O], err error) *MockTestFunctionInvokeCall[I, O]
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 ¶
func (m *MockTestHost) Call(arg0 context.Context, arg1 goprovider.CallRequest, arg2 pprovider.CallFunc) (goprovider.CallResponse, error)
Call mocks base method.
func (*MockTestHost) Construct ¶
func (m *MockTestHost) Construct(arg0 context.Context, arg1 goprovider.ConstructRequest, arg2 pprovider.ConstructFunc) (goprovider.ConstructResponse, error)
Construct mocks base method.
func (*MockTestHost) EXPECT ¶
func (m *MockTestHost) EXPECT() *MockTestHostMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockTestHostCallCall ¶
MockTestHostCallCall wrap *gomock.Call
func (*MockTestHostCallCall) Do ¶
func (c *MockTestHostCallCall) Do(f func(context.Context, goprovider.CallRequest, pprovider.CallFunc) (goprovider.CallResponse, error)) *MockTestHostCallCall
Do rewrite *gomock.Call.Do
func (*MockTestHostCallCall) DoAndReturn ¶
func (c *MockTestHostCallCall) DoAndReturn(f func(context.Context, goprovider.CallRequest, pprovider.CallFunc) (goprovider.CallResponse, error)) *MockTestHostCallCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTestHostCallCall) Return ¶
func (c *MockTestHostCallCall) Return(arg0 goprovider.CallResponse, arg1 error) *MockTestHostCallCall
Return rewrite *gomock.Call.Return
type MockTestHostConstructCall ¶
MockTestHostConstructCall wrap *gomock.Call
func (*MockTestHostConstructCall) Do ¶
func (c *MockTestHostConstructCall) Do(f func(context.Context, goprovider.ConstructRequest, pprovider.ConstructFunc) (goprovider.ConstructResponse, error)) *MockTestHostConstructCall
Do rewrite *gomock.Call.Do
func (*MockTestHostConstructCall) DoAndReturn ¶
func (c *MockTestHostConstructCall) DoAndReturn(f func(context.Context, goprovider.ConstructRequest, pprovider.ConstructFunc) (goprovider.ConstructResponse, error)) *MockTestHostConstructCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTestHostConstructCall) Return ¶
func (c *MockTestHostConstructCall) Return(arg0 goprovider.ConstructResponse, arg1 error) *MockTestHostConstructCall
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 ¶
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 ¶
MockTestResourceAnnotateCall wrap *gomock.Call
func (*MockTestResourceAnnotateCall[I, O]) Do ¶
func (c *MockTestResourceAnnotateCall[I, O]) Do(f func(infer.Annotator)) *MockTestResourceAnnotateCall[I, O]
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 ¶
func (c *MockTestResourceAnnotateCall[I, O]) Return() *MockTestResourceAnnotateCall[I, O]
Return rewrite *gomock.Call.Return
type MockTestResourceCheckCall ¶
MockTestResourceCheckCall wrap *gomock.Call
func (*MockTestResourceCheckCall[I, O]) Do ¶
func (c *MockTestResourceCheckCall[I, O]) Do(f func(context.Context, infer.CheckRequest) (infer.CheckResponse[I], error)) *MockTestResourceCheckCall[I, O]
Do rewrite *gomock.Call.Do
func (*MockTestResourceCheckCall[I, O]) DoAndReturn ¶
func (c *MockTestResourceCheckCall[I, O]) DoAndReturn(f func(context.Context, infer.CheckRequest) (infer.CheckResponse[I], error)) *MockTestResourceCheckCall[I, O]
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 ¶
MockTestResourceCreateCall wrap *gomock.Call
func (*MockTestResourceCreateCall[I, O]) Do ¶
func (c *MockTestResourceCreateCall[I, O]) Do(f func(context.Context, infer.CreateRequest[I]) (infer.CreateResponse[O], error)) *MockTestResourceCreateCall[I, O]
Do rewrite *gomock.Call.Do
func (*MockTestResourceCreateCall[I, O]) DoAndReturn ¶
func (c *MockTestResourceCreateCall[I, O]) DoAndReturn(f func(context.Context, infer.CreateRequest[I]) (infer.CreateResponse[O], error)) *MockTestResourceCreateCall[I, O]
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 ¶
MockTestResourceDeleteCall wrap *gomock.Call
func (*MockTestResourceDeleteCall[I, O]) Do ¶
func (c *MockTestResourceDeleteCall[I, O]) Do(f func(context.Context, infer.DeleteRequest[O]) (infer.DeleteResponse, error)) *MockTestResourceDeleteCall[I, O]
Do rewrite *gomock.Call.Do
func (*MockTestResourceDeleteCall[I, O]) DoAndReturn ¶
func (c *MockTestResourceDeleteCall[I, O]) DoAndReturn(f func(context.Context, infer.DeleteRequest[O]) (infer.DeleteResponse, error)) *MockTestResourceDeleteCall[I, O]
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTestResourceDeleteCall[I, O]) Return ¶
func (c *MockTestResourceDeleteCall[I, O]) Return(arg0 infer.DeleteResponse, arg1 error) *MockTestResourceDeleteCall[I, O]
Return rewrite *gomock.Call.Return
type MockTestResourceDiffCall ¶
MockTestResourceDiffCall wrap *gomock.Call
func (*MockTestResourceDiffCall[I, O]) Do ¶
func (c *MockTestResourceDiffCall[I, O]) Do(f func(context.Context, infer.DiffRequest[I, O]) (infer.DiffResponse, error)) *MockTestResourceDiffCall[I, O]
Do rewrite *gomock.Call.Do
func (*MockTestResourceDiffCall[I, O]) DoAndReturn ¶
func (c *MockTestResourceDiffCall[I, O]) DoAndReturn(f func(context.Context, infer.DiffRequest[I, O]) (infer.DiffResponse, error)) *MockTestResourceDiffCall[I, O]
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 ¶
MockTestResourceReadCall wrap *gomock.Call
func (*MockTestResourceReadCall[I, O]) Do ¶
func (c *MockTestResourceReadCall[I, O]) Do(f func(context.Context, infer.ReadRequest[I, O]) (infer.ReadResponse[I, O], error)) *MockTestResourceReadCall[I, O]
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 ¶
MockTestResourceUpdateCall wrap *gomock.Call
func (*MockTestResourceUpdateCall[I, O]) Do ¶
func (c *MockTestResourceUpdateCall[I, O]) Do(f func(context.Context, infer.UpdateRequest[I, O]) (infer.UpdateResponse[O], error)) *MockTestResourceUpdateCall[I, O]
Do rewrite *gomock.Call.Do
func (*MockTestResourceUpdateCall[I, O]) DoAndReturn ¶
func (c *MockTestResourceUpdateCall[I, O]) DoAndReturn(f func(context.Context, infer.UpdateRequest[I, O]) (infer.UpdateResponse[O], error)) *MockTestResourceUpdateCall[I, O]
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 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] }