pub struct TestFixture {
pub name: String,
pub path: PathBuf,
pub ontology_files: Vec<PathBuf>,
pub template_files: Vec<PathBuf>,
pub ggen_toml: PathBuf,
pub golden_dir: PathBuf,
}Expand description
A test fixture representing a complete ggen project
Fields§
§name: StringUnique fixture identifier (e.g., “thesis-gen”, “minimal”)
path: PathBufPath to fixture directory
ontology_files: Vec<PathBuf>TTL/RDF ontology files
template_files: Vec<PathBuf>Tera template files
ggen_toml: PathBufPath to ggen.toml manifest
golden_dir: PathBufDirectory containing expected output (golden files)
Implementations§
Source§impl TestFixture
impl TestFixture
Sourcepub fn load(path: impl AsRef<Path>, name: &str) -> Result<Self>
pub fn load(path: impl AsRef<Path>, name: &str) -> Result<Self>
Load a fixture from a directory
Sourcepub fn copy_to_temp(&self) -> Result<TempDir>
pub fn copy_to_temp(&self) -> Result<TempDir>
Copy fixture to a temporary directory
Sourcepub fn golden_files(&self) -> Result<Vec<GoldenFile>>
pub fn golden_files(&self) -> Result<Vec<GoldenFile>>
Get all golden files for this fixture
Sourcepub fn manifest_content(&self) -> Result<String>
pub fn manifest_content(&self) -> Result<String>
Get the fixture’s ggen.toml content
Trait Implementations§
Source§impl Clone for TestFixture
impl Clone for TestFixture
Source§fn clone(&self) -> TestFixture
fn clone(&self) -> TestFixture
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TestFixture
impl RefUnwindSafe for TestFixture
impl Send for TestFixture
impl Sync for TestFixture
impl Unpin for TestFixture
impl UnwindSafe for TestFixture
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