test

package
v0.0.0-...-57fb5dc Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Endpoint

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

Endpoint tests an HTTP endpoint using the given AuthAPITestCase spec.

func Postgres

func Postgres() (*pgxpool.Pool, configd.Config, error)

Postgres returns the postgres instance

Types

type APITestCase

type APITestCase struct {
	Name         string
	Method       string
	URL          string
	Context      map[string]interface{}
	Body         string
	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