MCPcopy Create free account
hub / github.com/TankHQ/tank / table_ref_write_alias_reference

Function table_ref_write_alias_reference

tests/util.rs:113–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111 fn table_ref_tokens() {
112 let table = TableRef::from(("analytics", "events")).with_alias("e".into());
113
114 let tokens = table.to_token_stream().to_string();
115 assert!(tokens.contains(":: tank :: TableRef"));
116 assert!(tokens.contains("events"));
117 assert!(tokens.contains("analytics"));
118 assert!(tokens.contains("Borrowed"));
119 }
120
121 #[test]
122 fn quote_cow_owned() {
123 let value: Cow<'static, str> = Cow::Owned(String::from("events"));
124 let tokens = quote_cow(&value).to_string();
125 assert_eq!(tokens, ":: std :: borrow :: Cow :: Owned (\"events\")");
126 }
127
128 #[test]

Callers

nothing calls this directly

Calls 1

write_queryMethod · 0.45

Tested by

no test coverage detected