package
0.5.2
Repository: https://github.com/ubuntu/aad-auth.git
Documentation: pkg.go.dev

# Functions

CanRunRustTests returns if we can run rust tests via cargo on this machine.
ChangeAppArgs modifies the application Args for cobra to parse them successfully.
DumpDb opens the specified database and dumps its content into w.
GetCurrentUIDGID return current uid/gid for the user running the tests.
InstallUpdateFlag install an update flag referenced in this package.
LoadAndUpdateFromGoldenDump loads the specified database from golden file in testdata/.
LoadWithUpdateFromGolden loads the element from a plaintext golden file in testdata/golden.
LoadYAMLWithUpdateFromGolden loads the element from an yaml golden file in testdata/golden.
MarkRustFilesForTestCache marks all rust files and related content to be in the Go test caching infra.
MergeCoverages append all coverage files marked for merging to main Go Cover Profile.
NewCacheForTests returns a cache that is closed automatically, with permissions set to current user.
ParseTimeWildcard parses some time wildcards that are contained in the dump files to ensure that the loaded dbs will always present the same behavior when loaded for tests.
PrepareDBsForTests initializes a cache in the specified directory and load it with the specified dump.
ReadDumpAsTables opens the file specified and reads its contents into a map[name]Table.
RunApp instantiates the CLI tool with the given args.
TimeBetweenOrEquals returns if tt is between start and end.
TimestampToWildcard converts a given timestamp from its RFC3339 representation to a time wildcard in order to reduce diff noise in the tests.
TrackRustCoverage returns environment variables and target directory so that following commands runs with code coverage enabled.
TrackTestCoverage starts tracking coverage in a dedicated file based on current test name.
WantCoverage returns true if coverage was requested in test.
WithGoldPath overrides the default path for golden files used.

# Structs

Table is a struct that represents a table of a db.

# Type aliases

OptionGolden is a supported option reference to change the golden files comparison.