cargo fmt
sender Build / Check (pull_request) Successful in 30s
sender Build / Rustfmt (pull_request) Successful in 36s
sender Build / Test Suite (pull_request) Failing after 49s
sender Build / Clippy (pull_request) Failing after 37s
sender Build / build (pull_request) Successful in 51s
sender Build / Check (pull_request) Successful in 30s
sender Build / Rustfmt (pull_request) Successful in 36s
sender Build / Test Suite (pull_request) Failing after 49s
sender Build / Clippy (pull_request) Failing after 37s
sender Build / build (pull_request) Successful in 51s
This commit is contained in:
+15
-7
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
pub const APP_NAME: &str = "sender";
|
pub const APP_NAME: &str = "sender";
|
||||||
|
|
||||||
pub fn get_paths(args: &Vec<String>) -> (String, String, String) {
|
pub fn get_paths(args: &Vec<String>) -> (String, String, String) {
|
||||||
@@ -21,9 +20,6 @@ pub async fn parse_config() -> (textsender_models::config::auxiliary::TwilioConf
|
|||||||
(config, true)
|
(config, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
axlry "git.kundeng.us/phoenix/textsender-models/tx0/config/auxiliary"
|
axlry "git.kundeng.us/phoenix/textsender-models/tx0/config/auxiliary"
|
||||||
)
|
)
|
||||||
@@ -57,9 +53,21 @@ mod tests {
|
|||||||
fn test_parse_config() {
|
fn test_parse_config() {
|
||||||
let (config, success) = async_std::task::block_on(super::parse_config());
|
let (config, success) = async_std::task::block_on(super::parse_config());
|
||||||
assert!(success, "Config was not parsed");
|
assert!(success, "Config was not parsed");
|
||||||
assert_eq!(false, config.account_sid.is_empty(), "Account SID is missing");
|
assert_eq!(
|
||||||
|
false,
|
||||||
|
config.account_sid.is_empty(),
|
||||||
|
"Account SID is missing"
|
||||||
|
);
|
||||||
assert_eq!(false, config.auth_token.is_empty(), "AUTH TOKEN is missing");
|
assert_eq!(false, config.auth_token.is_empty(), "AUTH TOKEN is missing");
|
||||||
assert_eq!(false, config.phone_number.is_empty(), "Phone Number is missing");
|
assert_eq!(
|
||||||
assert_eq!(false, config.service_sid.is_empty(), "Service SID is missing");
|
false,
|
||||||
|
config.phone_number.is_empty(),
|
||||||
|
"Phone Number is missing"
|
||||||
|
);
|
||||||
|
assert_eq!(
|
||||||
|
false,
|
||||||
|
config.service_sid.is_empty(),
|
||||||
|
"Service SID is missing"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user