Documentation ¶
Overview ¶
Package internal contains miscellaneous functions and types that are internal to the syspolicy packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var OSForTesting lazy.SyncValue[string]
OSForTesting is the operating system override used for testing. It follows the same naming convention as version.OS.
Functions ¶
func EqualJSONForTest ¶
EqualJSONForTest compares the JSON in j1 and j2 for semantic equality. It returns "", "", true if j1 and j2 are equal. Otherwise, it returns indented versions of j1 and j2 and false.
Types ¶
type TB ¶
type TB interface { Helper() Cleanup(func()) Logf(format string, args ...any) Error(args ...any) Errorf(format string, args ...any) Fatal(args ...any) Fatalf(format string, args ...any) }
TB is a subset of testing.TB that we use to set up test helpers. It's defined here to avoid pulling in the testing package.
Click to show internal directories.
Click to hide internal directories.