close
Skip to content

Remove redundant Rust tests from checker, diagnostics, and parser#84

Merged
dak2 merged 1 commit into
mainfrom
remove-redundant-checker-diagnostics-parser-tests
Mar 22, 2026
Merged

Remove redundant Rust tests from checker, diagnostics, and parser#84
dak2 merged 1 commit into
mainfrom
remove-redundant-checker-diagnostics-parser-tests

Conversation

@dak2
Copy link
Copy Markdown
Owner

@dak2 dak2 commented Mar 22, 2026

Motivation

These Rust unit tests duplicate coverage already provided by Ruby integration tests.

Changes

  • checker.rs: Remove tautological test_file_checker_creation (assert!(ok || err) is always true)
  • diagnostics/diagnostic.rs: Remove 2 message format tests (verified by assert_check_error in Ruby)
  • diagnostics/formatter.rs: Remove output format test (verified by assert_error_at in Ruby)
  • parser.rs: Remove 8 parse smoke tests (every Ruby integration test exercises the parser)

Total: 12 tests removed (119 → 108), 169 lines deleted.

Checked

  • cargo test --lib — 108 tests pass
  • cargo clippy — no warnings

🤖 Generated with Claude Code

Ruby integration tests already cover these behaviors:
- checker: tautological test (assert ok || err)
- diagnostics: message format verified by assert_check_error
- formatter: output format verified by assert_error_at
- parser: smoke tests exercised by every Ruby test

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dak2 dak2 merged commit e52a768 into main Mar 22, 2026
4 checks passed
@dak2 dak2 deleted the remove-redundant-checker-diagnostics-parser-tests branch March 22, 2026 07:19
@dak2 dak2 mentioned this pull request Mar 24, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant