testapi

package
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 3 Imported by: 0 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

Overview

Package testapi supplies the mandatory contract gate and discovery for mock Hub fixtures.

Index

Constants

View Source
const HubContextFlightAmbiguous = `` /* 419-byte string literal not displayed */

HubContextFlightAmbiguous is the answer to a bare +work when the user can read more than one flight with that slug: still 200, with flight null and the same reason orient gives when it resolves the slug itself.

View Source
const HubContextFlightNotFound = `` /* 384-byte string literal not displayed */

HubContextFlightNotFound is HubContextWork's answer when the requested flight is missing or unreadable: still 200, with flight null and the reason in flight_error.

View Source
const HubContextWork = `` /* 1446-byte string literal not displayed */

HubContextWork is a GET /api/v1/info body in the shape tapper-hub serves (its handler.InfoResponse, documented in tapper-hub's docs/tapper-hub-api-v1.md), for user jared and flight @foldwise/+work. The flight's cover is the Hub-composed cover: @foldwise/dev is listed, and @foldwise/linked is reached through dev's links at distance 1. @foldwise/private is outside the cover. Unknown fields stand in for ones a newer Hub adds.

Variables

This section is empty.

Functions

func NewServer

func NewServer(h http.Handler) *httptest.Server

func NewTLSServer

func NewTLSServer(h http.Handler) *httptest.Server

func NewUnstartedServer

func NewUnstartedServer(h http.Handler) *httptest.Server

Types

This section is empty.

Jump to

Keyboard shortcuts

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