File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ impl FileObj {
122
122
/// Similar to [`FileObj::is_hunk_in_diff()`] but looks for a single line instead of
123
123
/// an entire [`DiffHunk`].
124
124
///
125
- /// This is a private function it is because only used in
125
+ /// This is a private function because it is only used in
126
126
/// [`FileObj::make_suggestions_from_patch()`].
127
127
fn is_line_in_diff ( & self , line : & u32 ) -> bool {
128
128
for range in & self . diff_chunks {
Original file line number Diff line number Diff line change @@ -222,7 +222,8 @@ mod test {
222
222
assert ! ( result. is_err( ) ) ;
223
223
}
224
224
225
- // just for completion. this test is not practical use case
225
+ // Verifies that the system gracefully handles cases where all analysis is disabled.
226
+ // This ensures no diagnostic comments are generated when analysis is explicitly skipped.
226
227
#[ tokio:: test]
227
228
async fn no_analysis ( ) {
228
229
env:: remove_var ( "GITHUB_OUTPUT" ) ; // avoid writing to GH_OUT in parallel-running tests
You can’t perform that action at this time.
0 commit comments