pub struct TestDataConfig {
pub name: String,
pub description: String,
pub directories: Vec<String>,
pub files: Vec<FileConfig>,
}Available on crate features
test-utils only.Expand description
Configuration for test data generation
Fields§
§name: StringName of the test configuration
description: StringHuman-readable description of what this configuration creates
directories: Vec<String>List of directories to create in the test structure
files: Vec<FileConfig>List of files to create with their configurations
Implementations§
Source§impl TestDataConfig
impl TestDataConfig
Sourcepub fn game_assets() -> Self
pub fn game_assets() -> Self
Create a game-like asset structure
Sourcepub fn mixed_sizes() -> Self
pub fn mixed_sizes() -> Self
Create files with various sizes
Sourcepub fn special_names() -> Self
pub fn special_names() -> Self
Create files with special characters and spaces
Sourcepub fn all_configs() -> Vec<Self>
pub fn all_configs() -> Vec<Self>
Get all predefined configurations
Trait Implementations§
Source§impl Clone for TestDataConfig
impl Clone for TestDataConfig
Auto Trait Implementations§
impl Freeze for TestDataConfig
impl RefUnwindSafe for TestDataConfig
impl Send for TestDataConfig
impl Sync for TestDataConfig
impl Unpin for TestDataConfig
impl UnsafeUnpin for TestDataConfig
impl UnwindSafe for TestDataConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more