testutil

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SnippetOrBinary

func SnippetOrBinary(t *testing.T, path string, requireBinary bool) string

SnippetOrBinary returns the path to either the binary or the snippet for the given logical entry key. Note: this is intended to be used only within the context of the binary cataloger test fixtures. Any other use is unsupported. Path should be a logical path relative to the test-fixtures/classifiers directory (but does not specify the "bin" or "snippets" parent path... this is determined logically [snippets > binary unless told otherwise]). Path should also be to the directory containing the binary or snippets of interest (not the binaries or snippets itself).

Types

This section is empty.

Jump to

Keyboard shortcuts

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