Benign cargo Download

quick.rs

imports itertools::Zip
SHA-2568c2d2e5d7870745be59da9a1dbe50c5094742dce43ac1521f671fef550a5a2ce
MaleculeMd(In)

Evidence

English function-word token "the" lines 2–10
2:33… (quickcheck_macros))]
3#![allow(dead_code)]
4
5//! The purpose of these tests is to cover corner cases of iterators
6//! and adaptors.
7//!
8//! In particular we test the tedious size_hint and exact size correctness.
9
10#[ma …
imports itertools::Zip lines 14–34
14:24… ;
15
16#[cfg(feature = "qc")]
17mod quicktests {
18
19use std::default::Default;
20
21use quickcheck as qc;
22use std::ops::Range;
23use itertools;
24use itertools::Itertools;
25use itertools::{
26 Zip,
27 Stride,
28 EitherOrBoth,
29};
30
31/// Our base iterator that we can impl Arbitrary for
32///
33/// NOTE: Iter is tricky and is not fused, to help catch bugs.
34/// At the end it will retur …
English function-word token "with" lines 36–44
36:11… lone, Debug)]
37struct Iter<T>(Range<T>, i32); // with fuse/done flag
38
39impl<T> Iter<T>
⋯5 lines
imports itertools::ZipSlices lines 546–552
546:14… lices(a: Vec<u8>, b: Vec<u8>) -> bool {
547 use itertools::ZipSlices;
548 itertools::equal(ZipSlices::new(&a, &b), a.iter().zip(&b))
549}
550
551#[quickcheck]
552fn equal_zipsl …

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.