snapshot

package
v0.0.0-...-cd4ae88 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsJSON

func AsJSON(v any) ([]byte, error)

func Match

func Match(name string, options ...Option) internal.Matcher[*Snapshot]

Types

type Option

type Option = func(m *snapshotMatcher)

func WithSnapshotUpdate

func WithSnapshotUpdate() Option

func WithWorkDir

func WithWorkDir(wd string) Option

type Snapshot

type Snapshot txtar.Archive

func NewSnapshot

func NewSnapshot() *Snapshot

func (*Snapshot) Add

func (s *Snapshot) Add(file string, data []byte)

func (Snapshot) With

func (s Snapshot) With(file string, data []byte) *Snapshot

Jump to

Keyboard shortcuts

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