med_core 0.6.4

A Rust Powered Core Engine for M.E.D. Masking, Encryption, and Decryption CSV/JSON
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::path::Path;

use crate::utils::{config::JobConfig, error::MedErrorType};

#[tokio::test]
async fn test_new_config_failed_load() {
    let test_config_path = Path::new("");
    let test_config = JobConfig::new(test_config_path).await;
    match test_config {
        Ok(_) => {
            unimplemented!()
        }
        Err(err) => {
            assert_eq!(err.error_type, MedErrorType::ConfigError);
        }
    }
}