fsbaselineutil

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SanitizeInternalSymbolName

func SanitizeInternalSymbolName(s string) string

Replaces internal symbol names of shape \uFFFD@symbolName@123 with \uFFFD@symbolName@<symbolId> // to avoid baselining differences in symbol ids, which can change between runs.

Types

type DiffEntry

type DiffEntry struct {
	Content       string
	MTime         time.Time
	IsWritten     bool
	SymlinkTarget string
}

type FSDiffer

type FSDiffer struct {
	FS           iovfs.FsWithSys
	DefaultLibs  func() *collections.SyncSet[string]
	WrittenFiles *collections.SyncSet[string]
	// contains filtered or unexported fields
}

func (*FSDiffer) BaselineFSwithDiff

func (d *FSDiffer) BaselineFSwithDiff(baseline io.Writer)

func (*FSDiffer) MapFs

func (d *FSDiffer) MapFs() *vfstest.MapFS

func (*FSDiffer) SerializedDiff

func (d *FSDiffer) SerializedDiff() *Snapshot

type Snapshot

type Snapshot struct {
	Snap        map[string]*DiffEntry
	DefaultLibs *collections.SyncSet[string]
}

Jump to

Keyboard shortcuts

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