kerneltest

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestKernelFactory

func NewTestKernelFactory[T salusaconfig.Config](k *kernel.Kernel, cfg T) func(t *testing.T) *TestKernel[T]

Types

type TestKernel

type TestKernel[T salusaconfig.Config] struct {
	// contains filtered or unexported fields
}

func (*TestKernel[T]) Delete

func (k *TestKernel[T]) Delete(target string, body io.Reader) *handlertest.HttpResult

func (*TestKernel[T]) DeleteJSON

func (k *TestKernel[T]) DeleteJSON(target string, body any) *handlertest.HttpResult

func (*TestKernel[T]) Get

func (k *TestKernel[T]) Get(target string) *handlertest.HttpResult

func (*TestKernel[T]) GetJSON

func (k *TestKernel[T]) GetJSON(target string) *handlertest.HttpResult

func (*TestKernel[T]) Patch

func (k *TestKernel[T]) Patch(target string, body io.Reader) *handlertest.HttpResult

func (*TestKernel[T]) PatchJSON

func (k *TestKernel[T]) PatchJSON(target string, body any) *handlertest.HttpResult

func (*TestKernel[T]) Post

func (k *TestKernel[T]) Post(target string, body io.Reader) *handlertest.HttpResult

func (*TestKernel[T]) PostJSON

func (k *TestKernel[T]) PostJSON(target string, body any) *handlertest.HttpResult

func (*TestKernel[T]) Put

func (k *TestKernel[T]) Put(target string, body io.Reader) *handlertest.HttpResult

func (*TestKernel[T]) PutJSON

func (k *TestKernel[T]) PutJSON(target string, body any) *handlertest.HttpResult

func (*TestKernel[T]) Request

func (k *TestKernel[T]) Request() *handlertest.RequestBuilder

Jump to

Keyboard shortcuts

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