aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
blob: 52d10aa52cf0185f29b9311aab295d3e9819ad81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
mod configuration;
mod error;
mod geometry;
mod patterns;
mod renderer;
mod shapes;
mod smart_positioning;
mod stage_type;
mod utils;

pub use configuration::{
    Colors, Configuration, Fonts, LineHeights, Opacity, Options, Sizes, Theme,
};
pub use renderer::{render_to_png, render_to_surface, render_to_svg};
pub use stage_type::StageType;

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn test_default_configuration() {
        let configuration = Configuration::default();
        assert!(configuration.options.show_background);
        assert!(configuration.options.smart_label_positioning);
    }

    #[test]
    fn test_default_stage_type() {
        let stage = StageType::default();
        assert_eq!(stage, StageType::Activities);
    }
}