Module test_utils

Source
Expand description

Test utilities for managing test providers and cleanup

This module provides utilities to ensure test providers use the “test-” prefix and are automatically cleaned up after tests complete.

Structs§

TestGuard
RAII guard for test cleanup

Constants§

TEST_PROVIDER_PREFIX
Prefix for test providers to avoid conflicts with real configurations

Functions§

cleanup_test_providers
Clean up test providers from the configuration directory
get_test_provider_name
Get test provider name with prefix
init_test_env
Initialize test environment - call this once at the start of test runs