1pub fn rocks() -> String {
2 let message = String::from("DevOps Rocks!!");
3 println!("{}", message);
4 return message;
5}
6pub fn security() -> String {
7 let message = String::from("DevSecOps is even better!");
8 println!("{}", message);
9 return message;
10}
11pub fn tdd() -> String {
12 let message = String::from("TDD gives confidence to Dev AND Sec AND Ops!");
13 println!("{}", message);
14 return message;
15}
16
17#[cfg(test)]
18mod tests {
19 use super::*;
20 #[test]
21 fn test_rocks() {
22 assert_eq!(rocks(), "DevOps Rocks!!")
23 }
24 #[test]
25 fn test_security() {
26 assert_eq!(security(), "DevSecOps is even better!")
27 }
28 #[test]
29 fn test_tdd() {
30 assert_eq!(tdd(), "TDD gives confidence to Dev AND Sec AND Ops!")
31 }
32}