Benign cargo download unavailable

tests.rs

Rust inline tests module pathRust test marker or harness
SHA-256eec857210322f4ea1531f67afe1aeacfc5626ec50781ee39f91c0b2a677b9846
MaleculeMd₂(InPa)

Evidence

imports base64::* lines 1–14
1:5… rn crate base64;
2extern crate rand;
3
4use rand::{Rng, FromEntropy};
5
6use base64::*;
7
8mod helpers;
9use helpers::*;
10
11// generate random contents of the specified length and test encode/decode roundtrip
12fn roundtrip_random(
13 byte_buf: &mut Vec<u8>,
14 str_buf: &mut …
English function-word token "for" lines 22–33
22:49… py();
23 let mut decode_buf = Vec::new();
24
25 for _ in 0..num_rounds {
26 byte_buf.clear();
27 str_buf.clear();
⋯6 lines
#[test] attribute lines 55–67
55:18… ) -> Config {
56 Config::new(CharacterSet::Standard, false)
57}
58
59#[test]
60fn roundtrip_random_short_standard() {
61 let mut byte_buf: Vec<u8> = Vec::new();
⋯6 lines
English function-word token "this" lines 114–116
114:2… n roundtrip_decode_trailing_10_bytes() {
115 // This is a special case because we decode 8 byte blocks of input at a time as much as we can,
116 // …
English function-word token "that" lines 117–118
117:20… to the output, we always write 2 garbage bytes that then will be overwritten by
118 // the NEXT block. However, if the next block only contains 2 b …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.