Skip to content

chore: add tests for SignatureVerifier#159

Merged
kruton merged 1 commit into
connectbot:mainfrom
kruton:sig-ver-test
May 22, 2026
Merged

chore: add tests for SignatureVerifier#159
kruton merged 1 commit into
connectbot:mainfrom
kruton:sig-ver-test

Conversation

@kruton
Copy link
Copy Markdown
Member

@kruton kruton commented May 22, 2026

Also trim out testapp/* to keep code coverage up.

Copilot AI review requested due to automatic review settings May 22, 2026 05:08
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds additional unit tests around SignatureVerifier behavior (including verifyWithKeyType) and adjusts Sonar configuration so the testapp module doesn’t drag down reported coverage.

Changes:

  • Add new SignatureVerifierTest cases covering unknown/negotiated algorithms and key-type/algorithm compatibility for RSA and Ed25519.
  • Add small test helpers to load test keys and produce SSH-format signatures.
  • Exclude testapp/** from Sonar coverage calculations.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
sshlib/src/test/kotlin/org/connectbot/sshlib/crypto/SignatureVerifierTest.kt Expands test coverage for signature verification across negotiated/self-described algorithms and key types.
build.gradle.kts Excludes testapp from Sonar coverage to keep coverage metrics focused on covered modules.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Also trim out testapp/* to keep code coverage up.
@kruton kruton merged commit cc309c0 into connectbot:main May 22, 2026
6 checks passed
@kruton kruton deleted the sig-ver-test branch May 22, 2026 05:20
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.

2 participants