package
1.0.0-beta
Repository: https://github.com/verifytests/verify.go.git
Documentation: pkg.go.dev

# Functions

AddScrubber add a function to the front of the scrubber collections.
AddScrubberForExtension adds a function for a specified extension to the front of the scrubber collection.
AutoVerify automatically accepts the received files.
DisableDiff enables the diff tools.
DontScrubGuids do not auto-scrub UUID values.
DontScrubTimes do not auto-scrub time.Time values.
NewVerifier creates a new Verifier with the associated settings.
OmitContentFromError show the content differences when a mismatch occurs during verification.
OnAfterVerify callback that is executed after the verify process.
OnBeforeVerify callback that is executed before the verify process.
OnFirstVerify callback that is executed on the first verify.
OnVerifyDelete callback that is executed before a file is deleted.
OnVerifyMismatch callback that is executed when a mismatch happens.
ScrubEmptyLines scrubs all the empty lines from the target.
ScrubInlineGuids scrubs inline UUID values with string types.
ScrubInlineTime scrubs inline Time values with string types.
ScrubLines scrub target lines with the provided function.
ScrubLinesContaining scrubs the line containing specified strings.
ScrubLinesContainingAnyCase scrubs strings that match the data in the target.
ScrubLinesWithReplace scrubs target lines and replace with the value provided by the function.
ScrubMachineName scrubs the machine name from the target data.
TestCase specify a case name for the test.
UniqueForArchitecture create file names based on the runtime architecture.
UniqueForOperatingSystem create file names based on the runtime operating system.
UniqueForRuntime create file names based on the Go runtime versions.
UseDirectory place the output files in the specified directory.
UseExtension specify an extension to use for the outputted files.
UseStreamComparer use the specified function for stream comparison.
UseStrictJSON use .json extension for the outputted files.
UseStringComparer use the specified function for string comparison.
Verify verifies the passed target with the default settings.

# Constants

FileEqual designates files with equal contents.
FileNew designates new files.
FileNotEqual designates files with different contents.

# Structs

CompareResult specifies comparison results with an optional message.
EqualityResult specifies file content equality with an optional message.
FilePair information for a file being compared containing received and verified files.
NotEqualFilePair designates a non-equal file information with an optional message.
Target contains the information about the underlying target being verified.

# Interfaces

Verifier is the main interface for verification process.

# Type aliases

AfterVerifyFunc a function to run after verification.
BeforeVerifyFunc a function to run before verification.
CleanupFunc cleanup function.
EqualFiles a slice of FilePair that contains equal files.
FileAppenderFunc returns a target.
FileConventionFunc provides a unique file and directory for the test.
FileEquality file content equality.
FirstVerifyFunc a function to run on first verification.
InstanceScrubber a function that scrubs the input target and returns the scrubbed version.
JSONAppenderFunc returns an appender.
NewFiles a slice of FilePair that contains new files.
NotEqualFiles a slice of NotEqualFilePair that contains non-equal files.
RemoveLineFunc decides if a line from the target should be removed.
ReplaceLineFunc replaces a line from the target the the output.
StreamComparerFunc a function that compares stream contents of received and verified files and returns the CompareResult.
StringComparerFunc a function that compares string content of received and verified files and returns the CompareResult.
No description provided by the author
VerifyDeleteFunc a function to run before deletion of a file.
VerifyMismatchFunc a function to run when a content mismatch happens.