refactor(metafile): move tests_*.rs to tests/<topic>.rs

This commit is contained in:
aiongg
2026-10-26 18:26:59 +00:00
parent bb611d2081
commit 7da84565d8
3 changed files with 2 additions and 4 deletions
-3
View File
@@ -109,6 +109,3 @@ pub fn import(bytes: &[u8]) -> Result<Imported, String> {
#[cfg(test)]
mod tests;
#[cfg(test)]
mod tests_import;
+2
View File
@@ -11,6 +11,8 @@ use vectorcraft_geom::{Affine, PathData, Point, Rect, shapes};
use crate::*;
mod import;
/// Add `n` (with a fresh id) on top of `d`'s first layer.
pub(crate) fn add(d: &mut Document, mut n: Node) {
n.id = d.alloc_id();
@@ -7,7 +7,6 @@ use vectorcraft_geom::{Affine, Rect, shapes};
use crate::bytes::Out;
use crate::tests::*;
use crate::*;
/// Every object of the imported document, depth first.
fn all(d: &Document) -> Vec<Node> {