Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chanced/jsonptr
/ from_tokens
Function
from_tokens
src/pointer.rs:1925–1928 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1923
1924
#[test]
1925
fn from_tokens() {
1926
let ptr = PointerBuf::from_tokens([
"foo"
,
"bar"
,
"baz"
]);
1927
assert_eq!(ptr,
"/foo/bar/baz"
);
1928
}
1929
1930
#[test]
1931
fn pointer_borrow() {
Callers
15
arbitrary
Method · 0.85
shrink
Method · 0.85
from
Method · 0.85
pointer_buf_clear
Function · 0.85
push_pop_back
Function · 0.85
pop_front_works_with_empty_strings
Function · 0.85
formatting
Function · 0.85
pointerbuf_try_from
Function · 0.85
replace_token_success
Function · 0.85
replace_token_out_of_bounds
Function · 0.85
replace_token_with_empty_string
Function · 0.85
qc_from_tokens
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected