mocks

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseResponse

type BaseResponse struct {
	Message string `json:"Message" xml:"Message"`

	MockGetResult    func() interface{} `json:"-" xml:"-"`
	MockGetRequestId func() string      `json:"-" xml:"-"`
}

func (BaseResponse) GetRequestId

func (r BaseResponse) GetRequestId() string

func (BaseResponse) GetResult

func (r BaseResponse) GetResult() interface{}

type MockRequestBody

type MockRequestBody struct {
	RequestFieldStr string `json:"field" schema:"field"`
	RequestFieldInt int    `json:"intField" schema:"intField"`

	SetAttributesFromFormCalled     bool
	SetAttributesFromFormCalledWith []interface{}

	MockSetAttributesFromFormCalledWith func(values url.Values)
}

func (*MockRequestBody) SetAttributesFromForm

func (m *MockRequestBody) SetAttributesFromForm(values url.Values)

Jump to

Keyboard shortcuts

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