pub fn rocks() -> String {
let message = String::from("DevOps Rocks!!");
println!("{}", message);
return message;
}
pub fn security() -> String {
let message = String::from("DevSecOps is even better!");
println!("{}", message);
return message;
}
pub fn tdd() -> String {
let message = String::from("TDD gives confidence to Dev AND Sec AND Ops!");
println!("{}", message);
return message;
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_rocks() {
assert_eq!(rocks(), "DevOps Rocks!!")
}
#[test]
fn test_security() {
assert_eq!(security(), "DevSecOps is even better!")
}
#[test]
fn test_tdd() {
assert_eq!(tdd(), "TDD gives confidence to Dev AND Sec AND Ops!")
}
}