Closed LinuxSuRen closed 4 months ago
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Coverage variation | Diff coverage |
---|---|
:white_check_mark: -0.02% | :white_check_mark: 60.00% |
:rocket: Don’t miss a bit, follow what’s new on Codacy.
Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more
There are 1 test cases, failed count 0:
Name | Average | Max | Min | Count | Error |
---|---|---|---|---|---|
9.383516ms | 11.376308ms | 8.331835ms | 3 | 0 |
Reported by api-testing.
Related to #501
Adds the
rasEncryptWithPublicKey
function to the template rendering functionalities and includes unit tests for the new function.rasEncryptWithPublicKey
function inpkg/render/template.go
, allowing users to encrypt content with a public key directly within templates. This function takes two string arguments (content and key), performs RSA encryption, and returns the encrypted content in base64 encoded format.rasEncryptWithPublicKey
function to ensure robustness.pkg/render/template_test.go
with tests for therasEncryptWithPublicKey
function, verifying its behavior with both valid and invalid keys, and ensuring the encryption process works as expected.For more details, open the Copilot Workspace session.