testing

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTest

func BuildTest(request clo.RequestInt, method string, url string, expectedBody any, t *testing.T)

func ConcurrentRetryTest

func ConcurrentRetryTest(request clo.RequestInt, t *testing.T)

func FilterTest

func FilterTest(request clo.FilterableRequest, t *testing.T)

func TestDoRequestCases

func TestDoRequestCases(t *testing.T, cases []DoTestCase)

Types

type DoTestCase

type DoTestCase struct {
	Name           string
	ShouldFail     bool
	CheckError     bool
	Req            clo.RequestInt
	BodyStringFunc func() (string, int)
	Expected       any
	Actual         any
}

func (*DoTestCase) TestCase

func (c *DoTestCase) TestCase(t *testing.T, cli *clo.ApiClient)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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