MCPcopy Index your code
hub / github.com/Rust-Web-Development/code / censor_profane_words

Function censor_profane_words

ch_11/src/profanity.rs:106–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104 }
105
106 async fn censor_profane_words() {
107 let content = "This is a shitty sentence".to_string();
108 let censored_content = check_profanity(content).await;
109 assert_eq!(censored_content.unwrap(), "this is a ****** sentence");
110 }
111
112 async fn no_profane_words() {
113 let content = "this is a sentence".to_string();

Callers 1

runFunction · 0.85

Calls 1

check_profanityFunction · 0.70

Tested by

no test coverage detected