stygian_graph/application/
executor.rs

1//! Pipeline executor
2
3/// Pipeline executor for orchestrating scraping operations
4pub struct PipelineExecutor;
5
6impl PipelineExecutor {
7    /// Create a new pipeline executor
8    pub const fn new() -> Self {
9        Self
10    }
11}
12
13impl Default for PipelineExecutor {
14    fn default() -> Self {
15        Self::new()
16    }
17}
18
19#[cfg(test)]
20#[allow(clippy::unwrap_used)]
21mod tests {
22    use super::*;
23
24    #[test]
25    fn new_returns_executor() {
26        let _e = PipelineExecutor::new();
27    }
28
29    #[test]
30    fn default_is_same_as_new() {
31        let _ = PipelineExecutor;
32    }
33}