Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ p
Function
p
nodedb/src/control/promql/parser.rs:449–452 ·
view source on GitHub ↗
(input: &str)
Source
from the content-addressed store, hash-verified
447
use crate::control::promql::lexer::tokenize;
448
449
fn p(input: &str) -> Expr {
450
let tokens = tokenize(input).unwrap();
451
parse(&tokens).unwrap()
452
}
453
454
#[test]
455
fn scalar_literal() {
Callers
9
metric_with_matchers
Function · 0.85
range_selector
Function · 0.85
rate_function
Function · 0.85
binary_precedence
Function · 0.85
aggregation_by
Function · 0.85
topk_with_param
Function · 0.85
nested_functions
Function · 0.85
offset_modifier
Function · 0.85
comparison_bool
Function · 0.85
Calls
2
tokenize
Function · 0.70
parse
Function · 0.70
Tested by
9
metric_with_matchers
Function · 0.68
range_selector
Function · 0.68
rate_function
Function · 0.68
binary_precedence
Function · 0.68
aggregation_by
Function · 0.68
topk_with_param
Function · 0.68
nested_functions
Function · 0.68
offset_modifier
Function · 0.68
comparison_bool
Function · 0.68