validate_test_data_in_dir

Function validate_test_data_in_dir 

Source
pub async fn validate_test_data_in_dir<Keys, Item>(
    test_data: &HashMap<String, TestObjectWithData>,
    path: &Path,
    expected_keys: Keys,
) -> Result<()>
where Keys: IntoIterator<Item = Item>, Item: Into<Cow<'static, str>>,
Expand description

Validate the test data in a hash map against files in a directory where the file paths relative to path correspond to the keys in TestObjectWithData.

This assumes that the tar archive has been extracted to local storage somewhere for validation purposes.