tests/

directory
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT

Directories

Path Synopsis
Package demo is a test-first migration application using shared Nirvana handlers.
Package demo is a test-first migration application using shared Nirvana handlers.
cmd command
internal/testkit
Package testkit builds native Huma fixtures on the application's Nirvana router.
Package testkit builds native Huma fixtures on the application's Nirvana router.
integration
huma
Package huma is a demo Huma migrated project for migration testing.
Package huma is a demo Huma migrated project for migration testing.
huma/cmd command
nirvana
Package nirvana is a demo Nirvana project for migration testing.
Package nirvana is a demo Nirvana project for migration testing.
nirvana/cmd command
performance
fixture
Package fixture defines the PERF-01 technical fixture: the same five Huma operations served by a standard Huma arm (humago on net/http) and by the adapter arm (humanirvana on a Nirvana router).
Package fixture defines the PERF-01 technical fixture: the same five Huma operations served by a standard Huma arm (humago on net/http) and by the adapter arm (humanirvana on a Nirvana router).
loadgen command
Command loadgen runs one closed-loop PERF-01 measurement against a running arm: warm up, then sample until both the minimum duration and minimum request count are reached (bounded by a maximum duration).
Command loadgen runs one closed-loop PERF-01 measurement against a running arm: warm up, then sample until both the minimum duration and minimum request count are reached (bounded by a maximum duration).
perf01 command
Command perf01 runs the full PERF-01 protocol: for every request set P01–P05 and concurrency 1/8/32 it collects 5 valid native/adapter pairs (at most 2 extra attempts), each arm on a fresh server process, and judges every pair by P95(adapter) − P95(native) < 1000µs.
Command perf01 runs the full PERF-01 protocol: for every request set P01–P05 and concurrency 1/8/32 it collects 5 valid native/adapter pairs (at most 2 extra attempts), each arm on a fresh server process, and judges every pair by P95(adapter) − P95(native) < 1000µs.
server command
Command server serves one PERF-01 arm on loopback until SIGTERM.
Command server serves one PERF-01 arm on loopback until SIGTERM.
unit
cover01
Package cover01 implements the COVER-01 gate: statement-weighted coverage of the adapter library packages must satisfy 100*covered >= 80*total, computed from one atomic profile with raw integer counts.
Package cover01 implements the COVER-01 gate: statement-weighted coverage of the adapter library packages must satisfy 100*covered >= 80*total, computed from one atomic profile with raw integer counts.
cover01/cmd command
Command cover01 checks a coverage profile against the COVER-01 gate and writes a JSON summary.
Command cover01 checks a coverage profile against the COVER-01 gate and writes a JSON summary.

Jump to

Keyboard shortcuts

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