Skip to content

Conversation

@Snider
Copy link
Owner

@Snider Snider commented Oct 30, 2025

Adds new tests to the pkg/crypt/openpgp package to cover error handling and edge cases in the EncryptPGP and DecryptPGP functions.

  • Adds a new test file, encrypt_extra_test.go, with tests for incorrect passphrases, malformed messages, and signing failures.
  • Adds a pre-generated, encrypted PGP key to be used in tests, working around a limitation in the go-crypto library that prevents programmatic generation of encrypted keys.

Adds new tests to the `pkg/crypt/openpgp` package to cover error handling and edge cases in the `EncryptPGP` and `DecryptPGP` functions.

- Adds a new test file, `encrypt_extra_test.go`, with tests for incorrect passphrases, malformed messages, and signing failures.
- Adds a pre-generated, encrypted PGP key to be used in tests, working around a limitation in the `go-crypto` library that prevents programmatic generation of encrypted keys.
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 30, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature-increase-test-coverage-openpgp

Comment @coderabbitai help to get the list of available commands and usage tips.

@Snider Snider merged commit 111e5e1 into dev Oct 30, 2025
4 checks passed
@Snider Snider deleted the feature-increase-test-coverage-openpgp branch October 30, 2025 22:57
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