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

This commit is contained in:
aiongg
2026-10-26 21:49:11 +00:00
parent 48253ff5e1
commit 576f1d1706
6 changed files with 8 additions and 11 deletions
-8
View File
@@ -218,11 +218,3 @@ pub fn layer_doc_with_sizes(doc: &Doc, index: usize, retain: bool) -> (Doc, [f64
#[cfg(test)]
mod tests;
#[cfg(test)]
mod tests_groups;
#[cfg(test)]
mod tests_import;
#[cfg(test)]
mod tests_reader;
#[cfg(test)]
mod tests_shading;
+5
View File
@@ -4,6 +4,11 @@ use super::*;
use crate::write::pdf;
mod groups;
mod import;
mod reader;
mod shading;
const CONTENT: &str = "/OC /MC0 BDC\n0 1 0 rg 0 0 200 100 re f\nEMC\n\
/OC /MC1 BDC\nq 10 10 80 80 re W n\n1 0 0 rg 0 0 50 100 re f\nQ\n\
/Pattern cs /P0 scn 100 0 100 50 re f\n\
@@ -1,7 +1,7 @@
//! M13.12: transparency groups (isolated, knockout, group alpha) and soft masks on a group's
//! combined result.
use super::*;
use crate::*;
use crate::tests::{page_pdf, render};
fn near(a: [f32; 4], b: [f32; 4]) -> bool {
@@ -1,7 +1,7 @@
//! M13.12: CCITT images in PDF pages, EPS text and parser robustness over truncated and
//! corrupt inputs (generated fixtures).
use super::*;
use crate::*;
use crate::tests::{coverage, page_pdf, render, shape_names};
fn eps(body: &[u8]) -> Doc {
@@ -1,6 +1,6 @@
//! M13.12: function-based and mesh shadings (generated fixtures).
use super::*;
use crate::*;
use crate::tests::{Objs, page_pdf, render};
/// Mesh vertex data: 8-bit flags, 16-bit coordinates (Decode `[0 65535 0 65535 …]`, so raw