restapicontracts

package
v0.166.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 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 Server

type Server[DTO, ID any] func(testing.TB) ServerSubject

func (Server[DTO, ID]) Benchmark

func (c Server[DTO, ID]) Benchmark(b *testing.B)

func (Server[DTO, ID]) Name

func (c Server[DTO, ID]) Name() string

func (Server[DTO, ID]) Spec

func (c Server[DTO, ID]) Spec(s *testcase.Spec)

func (Server[DTO, ID]) Test

func (c Server[DTO, ID]) Test(t *testing.T)

type ServerSubject

type ServerSubject struct {
	Client       http.Client
	ResourcePath string

	MakeContext func() context.Context
}

Jump to

Keyboard shortcuts

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