Help us shape the future of Go! Take the 2026 Go Developer Survey

readeroracle

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package readeroracle builds the checksum-pinned 15c reader for native wire compatibility tests. It reuses compilation, never observations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(t testing.TB, packageName string) string

Build is called once per parity test. The test owns the resulting binary; Go's source/flag-keyed build cache may reuse compilation across invocations. The oracle is deliberately uncovered: Go 1.26.4 coverage can ignore source overlays. Race instrumentation still follows the calling test binary.

func Input

func Input(t testing.TB) ([]byte, bool)

func Output

func Output(t testing.TB, value any)

func Run

func Run(t testing.TB, executable, testName string, value any) []byte

Types

type Error

type Error struct {
	Type     string
	Message  string
	Offset   int64
	Value    string
	Target   string
	Struct   string
	Field    string
	Causes   []Error
	Canceled bool
	Deadline bool
}

func Describe

func Describe(err error) *Error

Describe preserves the error chain's concrete classes and decoder metadata, not only strings which could conceal a changed offset or cancellation cause.

Jump to

Keyboard shortcuts

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