Coding standards
Security in ResourceSpace
Developer reference
Database
User api session functions
Geolocation functions
Storage test functions

storage_test_manifest()

Description

Fixed workload manifest. No path component comes from a request or directory enumeration.

Parameters

ColumnTypeDefaultDescription
array { :

Return

array Directory names and file names/sizes relative to the private test directory.

Location

include/storage_test_functions.php lines 40 to 56

Definition

 
function storage_test_manifest(): array
{
    
$dirs = [];
    
$files = [];
    for (
$i = 0; $i < 4; ++$i) {
        
$files['asset-' . $i . '.bin'] = 16 * 1024 * 1024;
        
$dirs[] = 'd' . $i;
        for (
$j = 0; $j < 4; ++$j) {
            
$dirs[] = 'd' . $i . '/' . $j;
        }
    }
    for (
$i = 0; $i < 96; ++$i) {
        
$name = 'd' . intdiv($i, 24) . '/' . intdiv($i % 24, 6) . '/preview-' . $i . '.bin';
        
$files[$name] = [4096, 32768, 262144][$i % 3];
    }
    return [
'dirs' => $dirs, 'files' => $files];
}

This article was last updated 13th November 2026 13:05 Europe/London time based on the source file dated 13th November 2026 11:40 Europe/London time.