()
| 225 | |
| 226 | #[test] |
| 227 | fn init_sig_short_and_long() { |
| 228 | assert_eq!(init_signature("[1, 2]"), "= [1, 2]"); |
| 229 | let long = "x".repeat(150); |
| 230 | let sig = init_signature(&long); |
| 231 | assert!(sig.starts_with("= ")); |
| 232 | assert!(sig.ends_with("...")); |
| 233 | assert_eq!(utf16_len(&sig[2..sig.len() - 3]), 100); |
| 234 | } |
| 235 | |
| 236 | #[test] |
| 237 | fn generated_patterns() { |
nothing calls this directly
no test coverage detected