Benign cargo Download

debug.rs

Rust test marker or harness
SHA-2568d4ea2e39eae64337dd37130e352e829703503ee1188e042324c0cdec45f9e4e
MaleculeMd(Pa)

Evidence

imports rayon::prelude::* lines 1–25
1extern crate rayon;
2
3use rayon::prelude::*;
4use std::fmt::Debug;
5
6fn check<I>(iter: I)
7 where I: ParallelIterator + Debug
8{
9 println!("{:?}", iter);
10}
11
12#[test]
13fn debug_binary_heap() {
14 use std::collections::BinaryHeap;
15 let heap: BinaryHeap<_> = (0..10).collect();
16 check(heap.par_iter());
17 check(heap.into_par_iter());
18}
19
20#[test]
21fn debug_btree_map() {
22 use std::collections::BTreeMap;
23 let mut map: BTreeMap<_,_> = (0..10).enumerate().collect();
24 check(map.par_iter());
25 …
imports std::collections::BTreeSet lines 26–34
26:27… r());
27}
28
29#[test]
30fn debug_btree_set() {
31 use std::collections::BTreeSet;
32 let set: BTreeSet<_> = (0..10).collect();
33 check(set.par_iter());
34 check(set.into_pa …
imports std::collections::HashMap lines 34–42
34:26… er());
35}
36
37#[test]
38fn debug_hash_map() {
39 use std::collections::HashMap;
40 let mut map: HashMap<_,_> = (0..10).enumerate().collect();
41 check(map.par_iter());
42 …
imports std::collections::HashSet lines 43–51
43:26… er());
44}
45
46#[test]
47fn debug_hash_set() {
48 use std::collections::HashSet;
49 let set: HashSet<_> = (0..10).collect();
50 check(set.par_iter());
51 check(set.into_par …
imports std::collections::LinkedList lines 51–59
51:29… ));
52}
53
54#[test]
55fn debug_linked_list() {
56 use std::collections::LinkedList;
57 let mut list: LinkedList<_> = (0..10).collect();
58 check(list.par_iter());
59 check(lis …

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.