MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_wipe

Function test_wipe

core/src/security/default.rs:352–358  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

350
351 #[test]
352 fn test_wipe() {
353 let provider = DefaultSecurityProvider::new();
354 provider.taint_input("My SSN is 123-45-6789");
355 provider.wipe();
356 let tainted = provider.tainted_data.read().unwrap();
357 assert_eq!(tainted.len(), 0);
358 }
359
360 #[test]
361 fn test_custom_patterns() {

Callers

nothing calls this directly

Calls 2

taint_inputMethod · 0.45
wipeMethod · 0.45

Tested by

no test coverage detected