()
| 453 | |
| 454 | #[test] |
| 455 | fn test_create_fully_masked_pattern() { |
| 456 | let test_cases = [ |
| 457 | ("• (•••) •••-••-64", "• (•••) •••-••-••"), |
| 458 | ("••• ••••-789", "••• ••••-•••"), |
| 459 | ("1234", "••••"), |
| 460 | ("+1••••••••46", "+•••••••••••") |
| 461 | ]; |
| 462 | |
| 463 | for (input, expected) in test_cases { |
| 464 | let result = create_fully_masked_pattern(input); |
| 465 | assert_eq!(result, expected, "Wrong fully masked pattern for {}", input); |
| 466 | } |
| 467 | } |
| 468 | |
| 469 | #[test] |
| 470 | fn test_extract_prefix() { |
nothing calls this directly
no test coverage detected