Showing 2 of 3 files from the diff.

@@ -69,20 +69,20 @@
Loading
69 69
    #[test]
70 70
    fn test_pairwise() {
71 71
        let a = [1, 2, 3, 4, 5];
72 -
        assert_eq!(a.pairwise().nth(0).unwrap(), (&1, &2));
72 +
        assert_eq!(a.pairwise().next().unwrap(), (&1, &2));
73 73
        assert_eq!(a.pairwise().last().unwrap(), (&4, &5));
74 74
        assert_eq!(a.pairwise().len(), a.len() - 1);
75 75
76 76
        let a = [1, 2];
77 -
        assert_eq!(a.pairwise().nth(0).unwrap(), (&1, &2));
77 +
        assert_eq!(a.pairwise().next().unwrap(), (&1, &2));
78 78
        assert_eq!(a.pairwise().last().unwrap(), (&1, &2));
79 79
        assert_eq!(a.pairwise().len(), a.len() - 1);
80 80
81 81
        let a = [1];
82 -
        assert!(a.pairwise().nth(0).is_none());
82 +
        assert!(a.pairwise().next().is_none());
83 83
84 84
        let b: Vec<f64> = vec![0.0, 0.1, 0.2];
85 -
        assert_eq!(b.pairwise().nth(0).unwrap(), (&0.0, &0.1));
85 +
        assert_eq!(b.pairwise().next().unwrap(), (&0.0, &0.1));
86 86
    }
87 87
88 88
    #[test]

@@ -488,41 +488,41 @@
Loading
488 488
        };
489 489
490 490
        assert_eq!(
491 -
            run_bins_for_cells(&vec![-4, -1, 4, 7, 10]),
491 +
            run_bins_for_cells(&[-4, -1, 4, 7, 10]),
492 492
            [1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, n]
493 493
        );
494 494
        assert_eq!(
495 -
            run_bins_for_cells(&vec![0, 2, 4, 8, 10]),
495 +
            run_bins_for_cells(&[0, 2, 4, 8, 10]),
496 496
            [n, 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, n]
497 497
        );
498 498
        assert_eq!(
499 -
            run_bins_for_cells(&vec![3, 5, 7, 9, 10]),
499 +
            run_bins_for_cells(&[3, 5, 7, 9, 10]),
500 500
            [n, n, n, n, 0, 0, 1, 1, 2, 2, 3, n]
501 501
        );
502 502
        assert_eq!(
503 -
            run_bins_for_cells(&vec![0, 2, 4, 6, 8]),
503 +
            run_bins_for_cells(&[0, 2, 4, 6, 8]),
504 504
            [n, 0, 0, 1, 1, 2, 2, 3, 3, n, n, n]
505 505
        );
506 506
        assert_eq!(
507 -
            run_bins_for_cells(&vec![0, 3, 6, 9, 12]),
507 +
            run_bins_for_cells(&[0, 3, 6, 9, 12]),
508 508
            [n, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3]
509 509
        );
510 510
511 511
        assert_eq!(
512 -
            run_bins_for_cells(&vec![-5, -4, -3, -1, 0]),
512 +
            run_bins_for_cells(&[-5, -4, -3, -1, 0]),
513 513
            [3, n, n, n, n, n, n, n, n, n, n, n]
514 514
        );
515 515
        assert_eq!(
516 -
            run_bins_for_cells(&vec![10, 12, 14, 16, 18]),
516 +
            run_bins_for_cells(&[10, 12, 14, 16, 18]),
517 517
            [n, n, n, n, n, n, n, n, n, n, n, 0]
518 518
        );
519 519
520 520
        assert_eq!(
521 -
            run_bins_for_cells(&vec![15, 16, 17, 18, 19]),
521 +
            run_bins_for_cells(&[15, 16, 17, 18, 19]),
522 522
            [n, n, n, n, n, n, n, n, n, n, n, n]
523 523
        );
524 524
        assert_eq!(
525 -
            run_bins_for_cells(&vec![-19, -18, -17, -16, -1]),
525 +
            run_bins_for_cells(&[-19, -18, -17, -16, -1]),
526 526
            [n, n, n, n, n, n, n, n, n, n, n, n]
527 527
        );
528 528
    }
@@ -542,7 +542,7 @@
Loading
542 542
            offset: 2,
543 543
        };
544 544
        assert_eq!(l.len(), 1);
545 -
        assert!(l.footprint() % 2 != 0);
545 +
        assert_ne!(l.footprint() % 2, 0);
546 546
        assert_eq!(l.start_offset(), 2);
547 547
548 548
        let l = XAxisLabel {
@@ -550,7 +550,7 @@
Loading
550 550
            offset: 2,
551 551
        };
552 552
        assert_eq!(l.len(), 2);
553 -
        assert!(l.footprint() % 2 != 0);
553 +
        assert_ne!(l.footprint() % 2, 0);
554 554
        assert_eq!(l.start_offset(), 1);
555 555
556 556
        let l = XAxisLabel {
@@ -558,7 +558,7 @@
Loading
558 558
            offset: 2,
559 559
        };
560 560
        assert_eq!(l.len(), 3);
561 -
        assert!(l.footprint() % 2 != 0);
561 +
        assert_ne!(l.footprint() % 2, 0);
562 562
        assert_eq!(l.start_offset(), 1);
563 563
564 564
        let l = XAxisLabel {
@@ -566,7 +566,7 @@
Loading
566 566
            offset: 1,
567 567
        };
568 568
        assert_eq!(l.len(), 4);
569 -
        assert!(l.footprint() % 2 != 0);
569 +
        assert_ne!(l.footprint() % 2, 0);
570 570
        assert_eq!(l.start_offset(), -1);
571 571
    }
572 572
Files Coverage
src 60.00%
tests/test_no_data.rs 100.00%
Project Totals (15 files) 60.75%

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading