fn test_zip_producer_both_info_and_jacoco_xml()

in src/producer.rs [1185:1226]


    fn test_zip_producer_both_info_and_jacoco_xml() {
        let (sender, receiver) = unbounded();

        let tmp_dir = tempfile::tempdir().expect("Failed to create temporary directory");
        let tmp_path = tmp_dir.path().to_owned();
        producer(
            &tmp_path,
            &[
                "test/jacoco1.zip".to_string(),
                "test/jacoco2.zip".to_string(),
                "test/info1.zip".to_string(),
                "test/info2.zip".to_string(),
            ],
            &sender,
            false,
            false,
        );

        let expected = vec![
            (
                ItemFormat::JacocoXml,
                false,
                "jacoco/basic-jacoco.xml",
                true,
            ),
            (ItemFormat::JacocoXml, false, "inner-classes.xml", true),
            (ItemFormat::Info, false, "1494603967-2977-2_0.info", true),
            (ItemFormat::Info, false, "1494603967-2977-3_0.info", true),
            (ItemFormat::Info, false, "1494603967-2977-4_0.info", true),
            (ItemFormat::Info, false, "1494603968-2977-5_0.info", true),
            (ItemFormat::Info, false, "1494603972-2977-6_0.info", true),
            (ItemFormat::Info, false, "1494603973-2977-7_0.info", true),
            (ItemFormat::Info, false, "1494603967-2977-2_1.info", true),
            (ItemFormat::Info, false, "1494603967-2977-3_1.info", true),
            (ItemFormat::Info, false, "1494603967-2977-4_1.info", true),
            (ItemFormat::Info, false, "1494603968-2977-5_1.info", true),
            (ItemFormat::Info, false, "1494603972-2977-6_1.info", true),
            (ItemFormat::Info, false, "1494603973-2977-7_1.info", true),
        ];

        check_produced(tmp_path, &receiver, expected);
    }