clean_dev_dirs/config/
execution.rs1#[derive(Clone)]
11pub struct ExecutionOptions {
12 pub dry_run: bool,
14
15 pub interactive: bool,
17}
18
19#[cfg(test)]
20mod tests {
21 use super::*;
22
23 #[test]
24 fn test_execution_options_creation() {
25 let exec_opts = ExecutionOptions {
26 dry_run: true,
27 interactive: false,
28 };
29
30 assert!(exec_opts.dry_run);
31 assert!(!exec_opts.interactive);
32 }
33
34 #[test]
35 fn test_execution_options_clone() {
36 let original = ExecutionOptions {
37 dry_run: true,
38 interactive: false,
39 };
40 let cloned = original.clone();
41
42 assert_eq!(original.dry_run, cloned.dry_run);
43 assert_eq!(original.interactive, cloned.interactive);
44 }
45}