replay

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 13 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 replay answers an adapter's questions with what an archive really said. The replies are recorded in the adapter's testdata, so its tests ask nothing of the network.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Asked

func Asked(test testing.TB) *celestialdata.Near

Asked is the circle every recorded reply asked about.

func Fetched

func Fetched(test testing.TB, product *celestialdata.Product) error

Fetched is what Fetch makes of a product whose address answers with a small file, gzip when its name ends in .gz. Each adapter's test sees the size the adapter gave its products this way. Only Fetch reads it.

func Live

func Live(test testing.TB) *web.Client

Live is a client for the live checks, which ask a real archive. Its waits are picked in the numbers file beside the asked circle.

func Web

func Web(test testing.TB, replies map[string]string) *mocks.MockWeb

Web is a mock web that answers a Get of each address once. The answer is the recorded file named for it under testdata, with its length. Any other question fails the test, and so does a file that is not there.

Types

This section is empty.

Jump to

Keyboard shortcuts

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