Skip to content

More tests#138

Merged
kruton merged 4 commits into
mainfrom
more-tests
May 7, 2026
Merged

More tests#138
kruton merged 4 commits into
mainfrom
more-tests

Conversation

@kruton
Copy link
Copy Markdown
Member

@kruton kruton commented May 7, 2026

No description provided.

The disconnectedFlow might have fired before we were able to capture the
event.
Copilot AI review requested due to automatic review settings May 7, 2026 03:01
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

This PR adds additional unit tests around the SFTP result/type model and the Java-reflection-based ML-KEM provider, and expands CI coverage to run the build on Java 25.

Changes:

  • Added equals/hashCode verification tests for several SFTP value types.
  • Added behavioral tests for SftpResult convenience helpers and for SFTP attribute decoding of extended attributes.
  • Added a comprehensive test suite for JavaMlKemProvider, plus CI matrix expansion to Java 25.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
sshlib/src/test/kotlin/org/connectbot/sshlib/SftpTypesTest.kt Adds EqualsVerifier tests for SFTP type equality/hashCode and SftpStatusCode.fromCode.
sshlib/src/test/kotlin/org/connectbot/sshlib/SftpResultTest.kt Adds EqualsVerifier + behavior tests for SftpResult.getOrNull/getOrThrow.
sshlib/src/test/kotlin/org/connectbot/sshlib/crypto/JavaMlKemProviderTest.kt Adds tests for ML-KEM provider behavior, X.509 wrap/extract, and error wrapping (uses reflection/Unsafe).
sshlib/src/test/kotlin/org/connectbot/sshlib/client/sftp/SftpRawPacketTest.kt Adds EqualsVerifier test for raw SFTP packet equality/hashCode.
sshlib/src/test/kotlin/org/connectbot/sshlib/client/sftp/SftpFileAttributesTest.kt Adds a regression test ensuring extended attributes are skipped/consumed correctly.
.github/workflows/ci.yml Expands CI Java matrix to include Java 25.

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

Comment thread sshlib/src/test/kotlin/org/connectbot/sshlib/crypto/JavaMlKemProviderTest.kt Outdated
kruton added 3 commits May 6, 2026 20:13
This requires adding Java 25 to the test matrix.
Import classes when needed instead of referring to them by fully-qualified
class name.
@kruton kruton force-pushed the more-tests branch 2 times, most recently from 7d2ab0f to ccab199 Compare May 7, 2026 03:38
@kruton kruton enabled auto-merge (rebase) May 7, 2026 03:42
@kruton kruton merged commit 517db4d into main May 7, 2026
12 checks passed
@kruton kruton deleted the more-tests branch May 7, 2026 03:43
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