MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / lookup_size_checks

Function lookup_size_checks

rust/stringzilla.rs:3957–3963  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3955 #[test]
3956 #[should_panic]
3957 fn lookup_size_checks() {
3958 let long: Vec<u8> = vec![0; 20];
3959 let mut less_long: Vec<u8> = vec![0; 10];
3960
3961 let lut: [u8; 256] = (0..=255u8).collect::<Vec<_>>().try_into().unwrap();
3962 lookup(&mut less_long, &long, lut);
3963 }
3964
3965 #[test]
3966 fn replace_all_same_length() {

Callers

nothing calls this directly

Calls 1

lookupFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…