meowtest

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Catwalk

func Catwalk(args ...meowrt.Value) meowrt.Value

Catwalk executes a named function, captures its stdout output, and compares it with the expected output string. This is the Meow equivalent of Go's Example tests with // Output: comments. Usage: Catwalk(name, fn, expected)

func Expect

func Expect(args ...meowrt.Value) meowrt.Value

Expect asserts that two values are equal (by String representation). Usage: expect(actual, expected) or expect(actual, expected, "message")

func Judge

func Judge(args ...meowrt.Value) meowrt.Value

Judge asserts that a condition is truthy. Usage: judge(condition) or judge(condition, "message")

func Refuse

func Refuse(args ...meowrt.Value) meowrt.Value

Refuse asserts that a condition is falsy. Usage: refuse(condition) or refuse(condition, "message")

func Report

func Report(args ...meowrt.Value) meowrt.Value

Report outputs the test summary. Calls os.Exit(1) if any test failed.

func Reset

func Reset(w io.Writer, exit func(int))

Reset clears accumulated test results and reconfigures output/exit.

func Run

func Run(args ...meowrt.Value) meowrt.Value

Run executes a named test function, catching panics, and records the result. Usage: run("test name", fn)

Types

This section is empty.

Jump to

Keyboard shortcuts

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