test

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package test provides some handy testing utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Benchmark added in v0.0.8

func Benchmark(b *testing.B, filename string, process func(string), logf logFunc, printf printFunc)

Benchmark benchmarks the provided process.

func Runner

func Runner(t *testing.T, puzzle, want string, process func(string), printf *func(string, ...interface{}) (int, error))

Runner runs the provided process by placing the puzzle input into a temporary file and passing the filename to the process. It then tests that the resulting output (by overriding the `printf` method) matches the desired output.

Types

This section is empty.

Jump to

Keyboard shortcuts

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