refactor(render): move loose test files to src/tests/

This commit is contained in:
aiongg
2026-10-26 21:49:11 +00:00
parent 959322dc38
commit 9526833a62
19 changed files with 18 additions and 34 deletions
-34
View File
@@ -2400,14 +2400,6 @@ pub fn render_frame(project: &Project, comp: ItemId, t: Tick, scale: f64) -> Ima
#[cfg(test)]
mod tests;
#[cfg(test)]
mod tests_auto;
#[cfg(test)]
mod tests_remap;
#[cfg(test)]
mod tests_roi;
#[cfg(test)]
mod tests_styles;
/// Layer-space bounds `[x0, y0, x1, y1]` of a layer's content at the context time (source size
/// for solids/footage/precomps, glyph bounds for text, painted bounds for shapes). Used for viewer
@@ -2432,29 +2424,3 @@ pub fn content_bounds(ctx: &EvalCtx, layer: &effectcraft_project::Layer) -> Opti
pub fn kurbo_path(sp: &effectcraft_keyframe::ShapePath) -> kurbo::BezPath {
effectcraft_path::to_kurbo(sp)
}
#[cfg(test)]
mod tests_audio_fx;
#[cfg(test)]
mod tests_aux;
#[cfg(test)]
mod tests_collapse;
#[cfg(test)]
mod tests_color;
#[cfg(test)]
mod tests_footage_size;
#[cfg(test)]
mod tests_frame_blend;
#[cfg(test)]
mod tests_guides;
#[cfg(test)]
mod tests_mask_blur;
#[cfg(test)]
mod tests_mask_expansion;
#[cfg(test)]
mod tests_motion_tile;
#[cfg(test)]
mod tests_nested;
#[cfg(test)]
mod tests_paint;
#[cfg(test)]
mod tests_time;
+18
View File
@@ -6,6 +6,24 @@ use effectcraft_time::{FrameRate, Tick};
use crate::render_frame;
mod auto;
mod remap;
mod roi;
mod styles;
mod audio_fx;
mod aux_channels;
mod collapse;
mod color;
mod footage_size;
mod frame_blend;
mod guides;
mod mask_blur;
mod mask_expansion;
mod motion_tile;
mod nested;
mod paint;
mod time;
fn setup() -> (Project, ItemId, Comp) {
let mut p = Project::default();
// Exact float maths; 8/16 bpc quantisation has its own tests (tests_color).