MCPcopy Create free account
hub / github.com/Pometry/Raphtory / check_node_pattern_label

Function check_node_pattern_label

raphtory-cypher/src/parser/mod.rs:1049–1064  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1047
1048 #[test]
1049 fn check_node_pattern_label() {
1050 let input = "(n:Person)";
1051
1052 let pairs = CypherParser::parse(Rule::NodePattern, input);
1053 assert!(pairs.is_ok());
1054
1055 let node = parse_node_pattern(pairs.unwrap().next().unwrap(), &mut 0);
1056 assert_eq!(
1057 node,
1058 Ok(NodePattern {
1059 name: "n".to_string(),
1060 labels: vec!["Person".to_string()],
1061 props: None
1062 })
1063 );
1064 }
1065
1066 #[test]
1067 fn check_node_pattern_label_props() {

Callers

nothing calls this directly

Calls 3

parse_node_patternFunction · 0.85
unwrapMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected