Documentation
¶
Overview ¶
Package bundletest is shared test scaffolding: it builds a self-contained FileDescriptorSet and writes a valid on-disk bundle so negotiate/server/e2e can exercise the real bundle.Load path without protoc. It is imported only by tests (never by cmd), so it does not enter the binary.
Index ¶
Constants ¶
const ValidOpenAPI = `{"openapi":"3.0.0","info":{"title":"test","version":"1"},"paths":{}}`
ValidOpenAPI is a minimal well-formed OpenAPI document.
const ValidVersions = `` /* 160-byte string literal not displayed */
ValidVersions binds contract "2024-11" → POST /v3/echo, acme.v1.Ping → acme.v1.Pong.
Variables ¶
This section is empty.
Functions ¶
func Dir ¶
Dir writes a bundle into a fresh temp dir and returns its path. If versions is empty, ValidVersions is used.
func FDSBytes ¶
FDSBytes returns the wire bytes of a self-contained FileDescriptorSet: google.protobuf.Timestamp plus acme.v1 {Ping{string text=1; int32 n=2}, Pong{string text=1; google.protobuf.Timestamp at=2}}. It also includes Item{int32 id=1; string text=2}, Meta{string locale=1}, and PingV2{repeated Item items=1; optional Meta meta=2} for nested/array transform coverage.
Types ¶
This section is empty.