()
| 173 | |
| 174 | #[test] |
| 175 | fn init_sig_short_and_long() { |
| 176 | assert_eq!(init_signature("[1, 2]"), "= [1, 2]"); |
| 177 | let long = "x".repeat(150); |
| 178 | let sig = init_signature(&long); |
| 179 | assert!(sig.starts_with("= ")); |
| 180 | assert!(sig.ends_with("...")); |
| 181 | assert_eq!(utf16_len(&sig[2..sig.len() - 3]), 100); |
| 182 | } |
| 183 | |
| 184 | #[test] |
| 185 | fn generated_patterns() { |
nothing calls this directly
no test coverage detected