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

Function assert_reserved

nodedb-sql/src/ddl_ast/parse/dispatch.rs:111–116  ·  view source on GitHub ↗

Assert `parse` returns `Some(Err(SqlError::ReservedIdentifier { .. }))`.

(sql: &str)

Source from the content-addressed store, hash-verified

109
110 /// Assert `parse` returns `Some(Err(SqlError::ReservedIdentifier { .. }))`.
111 fn assert_reserved(sql: &str) {
112 match parse(sql) {
113 Some(Err(SqlError::ReservedIdentifier { .. })) => {}
114 other => panic!("expected Some(Err(ReservedIdentifier)), got {other:?}"),
115 }
116 }
117
118 #[test]
119 fn parse_create_collection() {

Callers 12

reserved_graphFunction · 0.85
reserved_matchFunction · 0.85
reserved_optionalFunction · 0.85
reserved_upsertFunction · 0.85
reserved_undropFunction · 0.85
reserved_purgeFunction · 0.85
reserved_cascadeFunction · 0.85
reserved_searchFunction · 0.85
reserved_crdtFunction · 0.85

Calls 1

parseFunction · 0.70

Tested by 12

reserved_graphFunction · 0.68
reserved_matchFunction · 0.68
reserved_optionalFunction · 0.68
reserved_upsertFunction · 0.68
reserved_undropFunction · 0.68
reserved_purgeFunction · 0.68
reserved_cascadeFunction · 0.68
reserved_searchFunction · 0.68
reserved_crdtFunction · 0.68