Skip to content

Commit c9bce39

Browse files
Pr0metheangithub-code-quality[bot]gemini-code-assist[bot]
authored
test: Potential fixes for 5 code quality findings (method-description comments for tests/wasm32.rs) (#625)
* Apply suggested fix to tests/wasm32.rs from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> * Apply suggested fix to tests/wasm32.rs from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> * Apply suggested fix to tests/wasm32.rs from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> * Apply suggested fix to tests/wasm32.rs from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> * Apply suggested fix to tests/wasm32.rs from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> * Update tests/wasm32.rs Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> * Update tests/wasm32.rs Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> --------- Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 5b61c24 commit c9bce39

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

tests/wasm32.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,35 @@ use wasm_bindgen_test::wasm_bindgen_test;
2121

2222
mod aes_encryption;
2323

24-
/// Test AES encryption functionality - run with: wasm-pack test --headless --chrome --features aes-crypto
24+
/// Verifies AES-256 encryption and decryption of an uncompressed file in the `wasm32` environment.
25+
/// The test ensures that data encrypted with AES-256 can be correctly decrypted back to its original
26+
/// contents using the WebAssembly build of the library.
27+
///
28+
/// Run with: `wasm-pack test --headless --chrome --features aes-crypto`
2529
#[cfg(feature = "aes-crypto")]
2630
#[wasm_bindgen_test]
2731
fn test_aes256_encrypted_uncompressed_file() {
2832
aes_encryption::aes256_encrypted_uncompressed_file();
2933
}
3034

3135
mod deflate64;
36+
/// Test Deflate64 decompression functionality.
3237
#[cfg(feature = "deflate64")]
3338
#[wasm_bindgen_test]
3439
fn test_decompress_deflate64() {
3540
deflate64::decompress_deflate64();
3641
}
3742

3843
mod xz;
44+
/// Test XZ decompression functionality.
3945
#[cfg(feature = "xz")]
4046
#[wasm_bindgen_test]
4147
fn test_decompress_xz() {
4248
xz::decompress_xz();
4349
}
4450

4551
mod lzma;
52+
/// Test LZMA decompression functionality in the wasm32 environment.
4653
#[cfg(feature = "lzma")]
4754
#[wasm_bindgen_test]
4855
fn test_decompress_lzma() {
@@ -53,6 +60,7 @@ fn test_decompress_lzma() {
5360
// that must be compiled with its `wasm-bindgen` feature when targeting `wasm32`.
5461
// Without that feature enabled, running these tests will fail with "time not implemented on this platform".
5562
mod end_to_end;
63+
/// Runs the end-to-end integration test suite for wasm32, covering time-dependent behavior.
5664
#[wasm_bindgen_test]
5765
fn test_end_to_end() {
5866
end_to_end::end_to_end();

0 commit comments

Comments
 (0)