INNER CODE UNIT · Rust

test_extract_job_id

tangle-network/blueprint · crates/blueprint-faas/src/lib.rs:246

    fn test_extract_job_id() {
        assert_eq!(
            utils::extract_job_id("blueprint-job-0", "blueprint"),
            Some(0)
        );
        assert_eq!(
            utils::extract_job_id("blueprint-job-42", "blueprint"),
            Some(42)
        );
        assert_eq!(utils::extract_job_id("wrong-format", "blueprint"), None);
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…