()
| 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] |
nothing calls this directly
no test coverage detected