Skip to main content

build_with_tests

Function build_with_tests 

Source
pub fn build_with_tests(
    namespace: &str,
    descriptors: Vec<Vec<u8>>,
    names: Vec<(String, String)>,
    receipts: Vec<Vec<u8>>,
    catalog: Vec<Vec<u8>>,
    tests: Vec<Vec<u8>>,
    seed: &[u8; 32],
) -> Result<Vec<u8>, BundleError>
Expand description

As build_with_catalog, with the bundle’s tests (Build 2 Part 3, E5): tests are the test objects of test lines (each {"test", "call", "asof"?, "inputs"?, "expect"}), sorted by function name then by case id into the bundle’s tests member, which the manifest signs. No tests make a bundle without the member. Errors: Format for a test that is not a test.