demoassert

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package demoassert records self-check failures for runnable demonstrations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Recorder

type Recorder struct {
	Failed bool
	Writer io.Writer
}

Recorder accumulates failures while allowing a demo to show its full proof.

func (*Recorder) Fail

func (r *Recorder) Fail(format string, args ...any)

Fail records and prints one failure.

Jump to

Keyboard shortcuts

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