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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#![cfg_attr(coverage_nightly, coverage(off))]
// Rust Mutation Operators using tree-sitter AST
// PMAT-7014: Rust Mutation Testing
// Status: RED Phase - Stub implementation
use super::tree_sitter_operators::{MutatedSource, TreeSitterMutationOperator};
use super::types::SourceLocation;
use tree_sitter::Node;
// ============================================================
// Struct Definitions
// ============================================================
/// 1. Binary Operator Replacement (AOR)
pub struct RustBinaryOpMutation;
/// 2. Relational Operator Replacement (ROR)
pub struct RustRelationalOpMutation;
/// 3. Logical Operator Replacement (LOR)
pub struct RustLogicalOpMutation;
/// 4. Bitwise Operator Replacement (BOR)
pub struct RustBitwiseOpMutation;
/// 5. Range Operator Replacement (RANGEOR) - Rust-specific
pub struct RustRangeOpMutation;
/// 6. Pattern Match Replacement (PMR) - Rust-specific
pub struct RustPatternMutation;
/// 7. Method Chain Replacement (MCR) - Rust-specific
pub struct RustMethodChainMutation;
/// 8. Borrow/Reference Mutation (LBM) - Rust-specific
pub struct RustBorrowMutation;
// ============================================================
// Implementations (split into include files)
// ============================================================
include!("rust_tree_sitter_mutations_operators.rs");
// ============================================================
// Tests
// ============================================================
include!("rust_tree_sitter_mutations_tests.rs");