test

package
v0.0.0-...-c015bec Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Endpoint

func Endpoint(t *testing.T, router *echo.Echo, tc APITestCase)

Endpoint tests an GRPC endpoint using the given APITestCase spec.

Types

type APITestCase

type APITestCase struct {
	Name               string
	Method, URL        string
	Query, Body, Param string
	Header             http.Header
	WantStatus         int
	WantResponse       string
}

APITestCase represents the data needed to describe an API test case.

Jump to

Keyboard shortcuts

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