apitest

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 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 Test

type Test[T any] struct {
	// contains filtered or unexported fields
}

func NewTest

func NewTest[T any](name string, runnerArgs T) *Test[T]

func (Test[T]) AssertExpectations

func (test Test[T]) AssertExpectations(outputs ...any)

func (*Test[T]) ExpectOutputs

func (test *Test[T]) ExpectOutputs(outputs ...any) *Test[T]

func (Test[T]) GetInput

func (test Test[T]) GetInput(index int) any

func (Test[T]) GetMock

func (test Test[T]) GetMock() *mock.Mock

func (Test[T]) GetStringPointerInput

func (test Test[T]) GetStringPointerInput(index int) *string

func (Test[T]) Run

func (test Test[T]) Run(goTest *testing.T, runner func(Test[T], T))

func (*Test[T]) WithInputs

func (test *Test[T]) WithInputs(inputs ...any) *Test[T]

func (*Test[T]) WithMockCall

func (test *Test[T]) WithMockCall(call *mock.Mock) *Test[T]

Jump to

Keyboard shortcuts

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