Debian Codegraph @

debian/patches/add-test-feature-requirements.patch

raw
1 Index: rust-plotters-0.3.5/src/chart/context.rs
2 ===================================================================
3 --- rust-plotters-0.3.5.orig/src/chart/context.rs
4 +++ rust-plotters-0.3.5/src/chart/context.rs
5 @@ -133,7 +133,7 @@ impl<'a, DB: DrawingBackend, CT: CoordTr
6 }
7 }
8
9 -#[cfg(test)]
10 +#[cfg(all(test, feature = "ttf"))]
11 mod test {
12 use crate::prelude::*;
13
14 Index: rust-plotters-0.3.5/src/drawing/area.rs
15 ===================================================================
16 --- rust-plotters-0.3.5.orig/src/drawing/area.rs
17 +++ rust-plotters-0.3.5/src/drawing/area.rs
18 @@ -710,6 +710,7 @@ mod drawing_area_tests {
19 }
20 }
21 #[test]
22 + #[cfg(feature="ttf")]
23 fn test_titled() {
24 let drawing_area = create_mocked_drawing_area(1024, 768, |m| {
25 m.check_draw_text(|c, font, size, _pos, text| {