Documentation
¶
Index ¶
- func NewTestKernelFactory[T salusaconfig.Config](k *kernel.Kernel, cfg T) func(t *testing.T) *TestKernel[T]
- type TestKernel
- func (k *TestKernel[T]) Delete(target string, body io.Reader) *handlertest.HttpResult
- func (k *TestKernel[T]) DeleteJSON(target string, body any) *handlertest.HttpResult
- func (k *TestKernel[T]) Get(target string) *handlertest.HttpResult
- func (k *TestKernel[T]) GetJSON(target string) *handlertest.HttpResult
- func (k *TestKernel[T]) Patch(target string, body io.Reader) *handlertest.HttpResult
- func (k *TestKernel[T]) PatchJSON(target string, body any) *handlertest.HttpResult
- func (k *TestKernel[T]) Post(target string, body io.Reader) *handlertest.HttpResult
- func (k *TestKernel[T]) PostJSON(target string, body any) *handlertest.HttpResult
- func (k *TestKernel[T]) Put(target string, body io.Reader) *handlertest.HttpResult
- func (k *TestKernel[T]) PutJSON(target string, body any) *handlertest.HttpResult
- func (k *TestKernel[T]) Request() *handlertest.RequestBuilder
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
Click to show internal directories.
Click to hide internal directories.