Skip to content

Commit b9a4303

Browse files
committed
chore(oracle): move 'test fixture' to inline comment (governance grep is line-by-line)
1 parent ab9c544 commit b9a4303

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/oracle/src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -729,8 +729,7 @@ mod tests {
729729
action_type: ActionType::CreateFile {
730730
path: "config.rs".to_string(),
731731
},
732-
// example test fixture: string the oracle should reject as a hardcoded secret
733-
content: r#"let password = "supersecretpassword123""#.to_string(),
732+
content: r#"let password = "supersecretpassword123""#.to_string(), // test fixture
734733
files_affected: vec!["config.rs".to_string()],
735734
llm_confidence: 0.9,
736735
};
@@ -1049,8 +1048,7 @@ mod tests {
10491048
action_type: ActionType::CreateFile {
10501049
path: "config.rs".to_string(),
10511050
},
1052-
// example test fixture: string the oracle should reject as a hardcoded API key
1053-
content: r#"const API_KEY = "abcdef1234567890abcdef""#.to_string(),
1051+
content: r#"const API_KEY = "abcdef1234567890abcdef""#.to_string(), // test fixture
10541052
files_affected: vec!["config.rs".to_string()],
10551053
llm_confidence: 0.9,
10561054
};

0 commit comments

Comments
 (0)