File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ impl FileObj {
122122 /// Similar to [`FileObj::is_hunk_in_diff()`] but looks for a single line instead of
123123 /// an entire [`DiffHunk`].
124124 ///
125- /// This is a private function it is because only used in
125+ /// This is a private function because it is only used in
126126 /// [`FileObj::make_suggestions_from_patch()`].
127127 fn is_line_in_diff ( & self , line : & u32 ) -> bool {
128128 for range in & self . diff_chunks {
Original file line number Diff line number Diff line change @@ -222,7 +222,8 @@ mod test {
222222 assert ! ( result. is_err( ) ) ;
223223 }
224224
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.
226227 #[ tokio:: test]
227228 async fn no_analysis ( ) {
228229 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