htmltest

package
v0.0.0-...-4d9c86d Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HT

type HT struct {
	// contains filtered or unexported fields
}

func New

func New(router http.Handler) HT

func (*HT) Client

func (ht *HT) Client() *http.Client

func (*HT) CssSelect

func (ht *HT) CssSelect(t *testing.T, node *html.Node, query string) []*html.Node

func (*HT) Curl

func (ht *HT) Curl(url string) string

func (*HT) CurlPost

func (ht *HT) CurlPost(url string) string

func (*HT) PathToURL

func (ht *HT) PathToURL(path string) string

func (*HT) PostForm

func (ht *HT) PostForm(path string, values *url.Values) (string, error)

func (*HT) Query

func (ht *HT) Query(t *testing.T, url, method, query string) []*html.Node

func (*HT) QueryOne

func (ht *HT) QueryOne(t *testing.T, url, q string) *html.Node

QueryOne ensures there's only one thing that matches.

Jump to

Keyboard shortcuts

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