testutil

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatSnapshot

func FormatSnapshot(
	document *scip.Document,
	commentSyntax string,
	formatter scip.SymbolFormatter,
	sourceFilePath string,
) (string, error)

FormatSnapshot renders the provided SCIP index into a pretty-printed text format that is suitable for snapshot testing.

func FormatSnapshots

func FormatSnapshots(
	index *scip.Index,
	commentSyntax string,
	symbolFormatter scip.SymbolFormatter,
	customProjectRoot string,
) ([]*scip.SourceFile, error)

FormatSnapshots renders the provided SCIP index into a pretty-printed text format that is suitable for snapshot testing.

func SnapshotTest

func SnapshotTest(t *testing.T, baseDir string, indexFunction indexFunction)

func SnapshotTestDirectories

func SnapshotTestDirectories(t *testing.T, inputDirectory, outputDirectory string, indexFunction indexFunction)

Types

This section is empty.

Jump to

Keyboard shortcuts

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