(t *testing.T)
| 688 | } |
| 689 | |
| 690 | func TestIsNumeric(t *testing.T) { |
| 691 | tests := []struct { |
| 692 | input string |
| 693 | want bool |
| 694 | }{ |
| 695 | {"123", true}, |
| 696 | {"0", true}, |
| 697 | {"", false}, |
| 698 | {"12a", false}, |
| 699 | {"abc", false}, |
| 700 | } |
| 701 | for _, tt := range tests { |
| 702 | t.Run(tt.input, func(t *testing.T) { |
| 703 | if got := isNumeric(tt.input); got != tt.want { |
| 704 | t.Errorf("isNumeric(%q) = %v, want %v", tt.input, got, tt.want) |
| 705 | } |
| 706 | }) |
| 707 | } |
| 708 | } |
| 709 | |
| 710 | func TestIsAlphanumericID(t *testing.T) { |
| 711 | tests := []struct { |
nothing calls this directly
no test coverage detected