Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

test(worktree): remove trivial MergeOperations type-system tests (#2954)

Worktrunk Bot600fb26cd936
diff --git a/src/commands/worktree/types.rs b/src/commands/worktree/types.rs
index 0851d94bc..75ca89522 100644
--- a/src/commands/worktree/types.rs
+++ b/src/commands/worktree/types.rs
@@ -292,46 +292,6 @@ mod tests {
assert_eq!(result.path(), &path);
}
- #[test]
- fn test_merge_operations_struct() {
- let ops = MergeOperations {
- committed: true,
- squashed: false,
- rebased: true,
- };
- assert!(ops.committed);
- assert!(!ops.squashed);
- assert!(ops.rebased);
- }
-
- #[test]
- fn test_merge_operations_clone() {
- let ops = MergeOperations {
- committed: true,
- squashed: true,
- rebased: false,
- };
- // MergeOperations implements both Clone and Copy
- // Use Clone explicitly to test the Clone impl
- let cloned = Clone::clone(&ops);
- assert_eq!(ops.committed, cloned.committed);
- assert_eq!(ops.squashed, cloned.squashed);
- assert_eq!(ops.rebased, cloned.rebased);
- }
-
- #[test]
- fn test_merge_operations_copy() {
- let ops = MergeOperations {
- committed: false,
- squashed: false,
- rebased: true,
- };
- let copied = ops; // Copy trait
- assert_eq!(ops.committed, copied.committed);
- assert_eq!(ops.squashed, copied.squashed);
- assert_eq!(ops.rebased, copied.rebased);
- }
-
#[test]
fn test_remove_result_removed_worktree() {
let result = RemoveResult::RemovedWorktree {