teatest

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertExactWidth

func AssertExactWidth(t *testing.T, expected int, output string)

AssertExactWidth fails if the widest line in output doesn't equal expected.

func AssertMaxWidth

func AssertMaxWidth(t *testing.T, maxWidth int, output string)

AssertMaxWidth fails if any line in output exceeds maxWidth.

func AssertNoRawEscapes

func AssertNoRawEscapes(t *testing.T, output string)

AssertNoRawEscapes fails if any line contains a broken/visible escape sequence. A raw escape looks like "38;2;110;231;183m" — ANSI parameters without the leading ESC[.

Types

This section is empty.

Jump to

Keyboard shortcuts

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