MCPcopy Create free account
hub / github.com/ddd/gpb / test_create_fully_masked_pattern

Function test_create_fully_masked_pattern

src/utils/mask.rs:455–467  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected