(t *testing.T)
| 673 | } |
| 674 | |
| 675 | func TestConvertToStructFieldName(t *testing.T) { |
| 676 | tests := []struct { |
| 677 | input string |
| 678 | expected string |
| 679 | }{ |
| 680 | {"firstName", "FirstName"}, |
| 681 | {"email", "Email"}, |
| 682 | {"First_name", "First_name"}, |
| 683 | {"", ""}, |
| 684 | {"a", "A"}, |
| 685 | {"ABC", "ABC"}, |
| 686 | } |
| 687 | |
| 688 | for _, tc := range tests { |
| 689 | t.Run(tc.input, func(t *testing.T) { |
| 690 | result := convertToStructFieldName(tc.input) |
| 691 | assert.Equal(t, tc.expected, result) |
| 692 | }) |
| 693 | } |
| 694 | } |
| 695 | |
| 696 | func TestIdentity_IsFieldTokenized(t *testing.T) { |
| 697 | t.Run("Nil metadata", func(t *testing.T) { |
nothing calls this directly
no test coverage detected