Unified secure test utilities module Provides comprehensive test file management with proper cleanup Replaces all previous test helper modules with secure implementation
Generate reliable unique suffix combining multiple entropy sources
Get secure temporary file path with validation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | filename |
Initialize test environment with specific name
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | test_name |
Register a file for automatic cleanup
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | filename |
Clean up a specific test file
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | filename |
Initialize figure for testing (ensures temp directory exists)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(figure_t), | intent(out) | :: | fig | |||
integer, | intent(in) | :: | width | |||
integer, | intent(in) | :: | height | |||
character(len=*), | intent(in) | :: | backend |
Save figure to temporary directory with automatic registration
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(figure_t), | intent(inout) | :: | fig | |||
character(len=*), | intent(in) | :: | filename |
Clean up all registered files and test directory securely