runnertest

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 12 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 runnertest is the conformance suite of runnerproto.Runner. It plays ward: it posts signed check requests to the runner and holds the results route that checks the check token.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, impl Impl)

Run runs the suite against the runner that impl.New returns.

Types

type Env

type Env struct {
	Secret  []byte
	WardURL string
	Kid     string
	// Key signs the check tokens of the runner. The ward of the suite trusts its public key for the scope check.
	Key ed25519.PrivateKey
}

Env is what the suite gives the runner under test.

type Impl

type Impl struct {
	New func(t *testing.T, env Env) runnerproto.Runner
}

Impl builds the runner under test. Commands use only sh.

Jump to

Keyboard shortcuts

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