Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.48.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTemplateWriter

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

func NewMockTemplateWriter

func NewMockTemplateWriter(options ...pegomock.Option) *MockTemplateWriter

func (*MockTemplateWriter) Execute

func (mock *MockTemplateWriter) Execute(wr io.Writer, data any) error

func (*MockTemplateWriter) FailHandler

func (mock *MockTemplateWriter) FailHandler() pegomock.FailHandler

func (*MockTemplateWriter) SetFailHandler

func (mock *MockTemplateWriter) SetFailHandler(fh pegomock.FailHandler)

func (*MockTemplateWriter) VerifyWasCalled

func (mock *MockTemplateWriter) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockTemplateWriter

func (*MockTemplateWriter) VerifyWasCalledEventually

func (mock *MockTemplateWriter) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockTemplateWriter

func (*MockTemplateWriter) VerifyWasCalledInOrder

func (mock *MockTemplateWriter) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockTemplateWriter

func (*MockTemplateWriter) VerifyWasCalledOnce

func (mock *MockTemplateWriter) VerifyWasCalledOnce() *VerifierMockTemplateWriter

type MockTemplateWriter_Execute_OngoingVerification

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

func (*MockTemplateWriter_Execute_OngoingVerification) GetAllCapturedArguments

func (c *MockTemplateWriter_Execute_OngoingVerification) GetAllCapturedArguments() (_param0 []io.Writer, _param1 []any)

func (*MockTemplateWriter_Execute_OngoingVerification) GetCapturedArguments

func (c *MockTemplateWriter_Execute_OngoingVerification) GetCapturedArguments() (io.Writer, any)

type VerifierMockTemplateWriter

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

func (*VerifierMockTemplateWriter) Execute

Jump to

Keyboard shortcuts

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