MCPcopy Create free account
hub / github.com/chanced/jsonptr / replace_token_with_empty_string

Function replace_token_with_empty_string

src/pointer.rs:1847–1851  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1845
1846 #[test]
1847 fn replace_token_with_empty_string() {
1848 let mut ptr = PointerBuf::from_tokens(["foo", "bar", "baz"]);
1849 assert!(ptr.replace(1, "").is_ok());
1850 assert_eq!(ptr, PointerBuf::from_tokens(["foo", "", "baz"]));
1851 }
1852
1853 #[test]
1854 fn replace_token_in_empty_pointer() {

Callers

nothing calls this directly

Calls 1

from_tokensFunction · 0.85

Tested by

no test coverage detected