testify

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	JSON = "application/json"
	HTML = "text/html"
)

Variables

This section is empty.

Functions

func It

func It(ts *testing.T, name string, fn func(t *testing.T))

func WithHttpMock

func WithHttpMock(ts *testing.T, name string, mock HttpMock, fn func(tt *testing.T, url string))

Types

type HttpMock

type HttpMock struct {
	ContentType string
	StatusCode  int
	Data        string
}

func (HttpMock) IsHTML

func (hc HttpMock) IsHTML() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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