fn test_zip_producer_both_info_and_gcnogcda_files()

in src/producer.rs [1230:1280]


    fn test_zip_producer_both_info_and_gcnogcda_files() {
        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/gcno.zip".to_string(),
                "test/gcda1.zip".to_string(),
                "test/info1.zip".to_string(),
                "test/info2.zip".to_string(),
            ],
            &sender,
            false,
            false,
        );

        let expected = vec![
            (ItemFormat::Gcno, true, "Platform_1.gcno", true),
            (
                ItemFormat::Gcno,
                true,
                "sub2/RootAccessibleWrap_1.gcno",
                true,
            ),
            (ItemFormat::Gcno, true, "nsMaiInterfaceValue_1.gcno", true),
            (ItemFormat::Gcno, true, "sub/prova2_1.gcno", true),
            (
                ItemFormat::Gcno,
                true,
                "nsMaiInterfaceDocument_1.gcno",
                true,
            ),
            (ItemFormat::Gcno, true, "nsGnomeModule_1.gcno", 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);
    }