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/field.rs:88–90 ·
view source on GitHub ↗
(v: &serde_json::Value)
Source
from the content-addressed store, hash-verified
86
use serde_json::json;
87
88
fn encode(v: &serde_json::Value) -> Vec<u8> {
89
nodedb_types::json_msgpack::json_to_msgpack(v).expect(
"encode"
)
90
}
91
92
#[test]
93
fn extract_integer_field() {
Callers
15
extract_integer_field
Function · 0.70
extract_string_field
Function · 0.70
extract_float_field
Function · 0.70
extract_missing_field
Function · 0.70
extract_multiple_fields
Function · 0.70
extract_nested_path
Function · 0.70
extract_dot_path_works
Function · 0.70
extract_path_missing_intermediate
Function · 0.70
extract_empty_path
Function · 0.70
extract_from_large_map
Function · 0.70
field_range_spans_entire_value
Function · 0.70
fuzz_truncated_buffers
Function · 0.70
Calls
2
json_to_msgpack
Function · 0.50
expect
Method · 0.45
Tested by
15
extract_integer_field
Function · 0.56
extract_string_field
Function · 0.56
extract_float_field
Function · 0.56
extract_missing_field
Function · 0.56
extract_multiple_fields
Function · 0.56
extract_nested_path
Function · 0.56
extract_dot_path_works
Function · 0.56
extract_path_missing_intermediate
Function · 0.56
extract_empty_path
Function · 0.56
extract_from_large_map
Function · 0.56
field_range_spans_entire_value
Function · 0.56
fuzz_truncated_buffers
Function · 0.56