Help us shape the future of Go! Take the 2026 Go Developer Survey

resttest

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package resttest drives raw REST/JSON request flows against a gcprest-served emulator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, base string, steps []Step)

Run issues steps in order against base (host:port) and checks status and body fragments.

Types

type Step

type Step struct {
	Name     string
	Method   string
	Path     string
	Body     string
	Contains []string
	Status   int
}

Step is one request in a flow and the response it must produce.

Jump to

Keyboard shortcuts

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