fn test_zip_producer_different_order_of_zip_files()

in src/producer.rs [1045:1091]


    fn test_zip_producer_different_order_of_zip_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/gcda1.zip".to_string(),
                "test/gcno.zip".to_string(),
                "test/gcda2.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::Gcno, true, "nsMaiInterfaceValue_2.gcno", true),
            (
                ItemFormat::Gcno,
                true,
                "nsMaiInterfaceDocument_2.gcno",
                true,
            ),
            (ItemFormat::Gcno, true, "nsGnomeModule_2.gcno", true),
            (ItemFormat::Gcno, true, "sub/prova2_2.gcno", true),
        ];

        check_produced(tmp_path, &receiver, expected);
    }