Shared test file utilities.
Generate reliable unique suffix combining multiple entropy sources
Get a temporary file path for a test artifact.
| 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 the test directory.