MCPcopy Index your code
hub / github.com/AI45Lab/Code / test_taint_tracking

Function test_taint_tracking

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

Source from the content-addressed store, hash-verified

342
343 #[test]
344 fn test_taint_tracking() {
345 let provider = DefaultSecurityProvider::new();
346 provider.taint_input("My SSN is 123-45-6789");
347 let tainted = provider.tainted_data.read().unwrap();
348 assert_eq!(tainted.len(), 1);
349 }
350
351 #[test]
352 fn test_wipe() {

Callers

nothing calls this directly

Calls 1

taint_inputMethod · 0.45

Tested by

no test coverage detected