MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / ok

Function ok

nodedb-sql/src/ddl_ast/parse/database/show_extras.rs:70–76  ·  view source on GitHub ↗
(sql: &str)

Source from the content-addressed store, hash-verified

68 use super::*;
69
70 fn ok(sql: &str) -> NodedbStatement {
71 let upper = sql.to_uppercase();
72 let parts: Vec<&str> = sql.split_whitespace().collect();
73 try_parse(&upper, &parts, sql)
74 .expect("expected Some")
75 .expect("expected Ok")
76 }
77
78 #[test]
79 fn parse_show_database_lineage() {

Callers 1

Calls 3

collectMethod · 0.80
try_parseFunction · 0.70
expectMethod · 0.45

Tested by

no test coverage detected