fix

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: MIT Imports: 3 Imported by: 2

README

Coverage Status Go Report Card

Fix - Test fixtures made easy!

  • Fixtures are being evaluated only once per test (*testing.T), no matter how many times they're being called

  • Fixtures resolve their dependencies

  • Zero dependencies

  • Inspired by pytest

Examples

See the examples folder and fixture_test.go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fixture

type Fixture[V any] func(t *testing.T) V

func New

func New[V any](createValue func(t *testing.T) V) Fixture[V]

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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