apitest

package module
v0.0.0-...-b7d1fdb Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: MIT Imports: 6 Imported by: 0

README

apitest

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestCase

type TestCase struct {
	Name             string `csv:"name"`
	RequestBody      string `csv:"request_body"`
	HttpVerb         string `csv:"http_verb"`
	Uri              string `csv:"uri"`
	WantStatusCode   int    `csv:"want_status_code"`
	WantResponseBody string `csv:"want_response_body"`
	SkipFlag         bool   `csv:"skip_flag"`

	*testing.T
}

func Load

func Load(filePath string, delim rune, hasHeader bool) ([]TestCase, error)

func (TestCase) RunCheckStatusCode

func (tc TestCase) RunCheckStatusCode() (responseBody []byte)

Jump to

Keyboard shortcuts

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