Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ encode
Function
encode
nodedb-query/src/msgpack_scan/index.rs:123–125 ·
view source on GitHub ↗
(v: &serde_json::Value)
Source
from the content-addressed store, hash-verified
121
use serde_json::json;
122
123
fn encode(v: &serde_json::Value) -> Vec<u8> {
124
nodedb_types::json_msgpack::json_to_msgpack(v).expect(
"encode"
)
125
}
126
127
#[test]
128
fn build_and_lookup() {
Callers
12
build_and_lookup
Function · 0.70
missing_field
Function · 0.70
empty_map
Function · 0.70
small_doc_uses_flat
Function · 0.70
large_doc_uses_hashmap
Function · 0.70
not_a_map
Function · 0.70
indexed_vs_sequential_same_result
Function · 0.70
fuzz_truncated_buffers
Function · 0.70
fuzz_non_map_inputs
Function · 0.70
fuzz_out_of_bounds_offset
Function · 0.70
fuzz_flat_vs_hashmap_threshold_truncation
Function · 0.70
fuzz_lookup_all_present_and_absent_keys
Function · 0.70
Calls
2
json_to_msgpack
Function · 0.50
expect
Method · 0.45
Tested by
12
build_and_lookup
Function · 0.56
missing_field
Function · 0.56
empty_map
Function · 0.56
small_doc_uses_flat
Function · 0.56
large_doc_uses_hashmap
Function · 0.56
not_a_map
Function · 0.56
indexed_vs_sequential_same_result
Function · 0.56
fuzz_truncated_buffers
Function · 0.56
fuzz_non_map_inputs
Function · 0.56
fuzz_out_of_bounds_offset
Function · 0.56
fuzz_flat_vs_hashmap_threshold_truncation
Function · 0.56
fuzz_lookup_all_present_and_absent_keys
Function · 0.56