()
| 287 | |
| 288 | #[test] |
| 289 | fn init_sig_short_and_long() { |
| 290 | assert_eq!(init_signature("[1, 2]"), "= [1, 2]"); |
| 291 | let long = "x".repeat(150); |
| 292 | let sig = init_signature(&long); |
| 293 | assert!(sig.starts_with("= ")); |
| 294 | assert!(sig.ends_with("...")); |
| 295 | assert_eq!(utf16_len(&sig[2..sig.len() - 3]), 100); |
| 296 | } |
| 297 | |
| 298 | #[test] |
| 299 | fn generated_patterns() { |
nothing calls this directly
no test coverage detected