Skip to main content

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    #[must_use]
9    pub const fn new() -> Self {
10        Self
11    }
12}
13
14impl Default for PipelineExecutor {
15    fn default() -> Self {
16        Self::new()
17    }
18}
19
20#[cfg(test)]
21#[allow(clippy::unwrap_used)]
22mod tests {
23    use super::*;
24
25    #[test]
26    fn new_returns_executor() {
27        let _e = PipelineExecutor::new();
28    }
29
30    #[test]
31    fn default_is_same_as_new() {
32        let _ = PipelineExecutor;
33    }
34}