LemonCore. Testing. Helpers
(lemon_core v0.1.0)
View Source
Helper functions for tests.
Summary
Functions
Clears all entries from a Store table.
Sets up a mock HOME directory for config tests. Returns the path to the mock home directory.
Generates a random master key for secrets testing.
Creates a temporary directory inside the harness temp dir. Returns the directory path.
Creates a temporary file with the given content. Returns the file path.
Generates a unique run ID for test isolation.
Generates a unique scope for test isolation.
Generates a unique session key for test isolation.
Generates a unique token for test isolation.
Waits for a process to be alive, with timeout.
Functions
Clears all entries from a Store table.
Sets up a mock HOME directory for config tests. Returns the path to the mock home directory.
Generates a random master key for secrets testing.
Creates a temporary directory inside the harness temp dir. Returns the directory path.
Creates a temporary file with the given content. Returns the file path.
Generates a unique run ID for test isolation.
Generates a unique scope for test isolation.
Generates a unique session key for test isolation.
Generates a unique token for test isolation.
Waits for a process to be alive, with timeout.