mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-27 19:27:21 -06:00
refactor(metafile): move tests_*.rs to tests/<topic>.rs
This commit is contained in:
@@ -109,6 +109,3 @@ pub fn import(bytes: &[u8]) -> Result<Imported, String> {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests_import;
|
||||
|
||||
@@ -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> {
|
||||
Reference in New Issue
Block a user