Help us shape the future of Go! Take the 2026 Go Developer Survey

snapshot

package module
v0.0.0-...-a11f3f9 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: ISC Imports: 8 Imported by: 0

README

snapshot

Very simple Go library to easily create snapshots for testing.

Note: This library is not yet stable. API changes may happen.

Licence

This project is licensed unter the ISC License. See LICENSE for details.


Copyright © 2024, Matthias Endler

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Match

func Match(t *testing.T, renderer Renderer, value any)

func MatchJSON

func MatchJSON(t *testing.T, value any)

Types

type Renderer

type Renderer interface {
	Render(w io.Writer, value any) error
	Ext() string
}

Jump to

Keyboard shortcuts

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