Expand description
Test helper API for accessing downloaded World of Warships game data.
Use these functions in integration tests to get VFS access to game builds. Tests should skip gracefully when game data is unavailable.
§Example
ⓘ
use wows_data_mgr::{available_builds, vfs_for_build};
#[test]
fn test_game_params_load() {
let builds = available_builds();
if builds.is_empty() {
eprintln!("Skipping: no game data available");
return;
}
for build in builds {
let vfs = vfs_for_build(build).unwrap();
// test with vfs...
}
}Modules§
Functions§
- available_
builds - Returns sorted list of locally available build numbers.
- game_
data_ dir - Returns the path to the game_data/ directory.
- game_
dir_ for_ build - Returns the game root path for a specific build.
- latest_
build - Returns the latest available build number and its VFS.
- vfs_
for_ build - Constructs a VFS for a specific build.