(t *testing.T)
| 736 | } |
| 737 | |
| 738 | func TestLowercaseFirstCharacters(t *testing.T) { |
| 739 | tests := []struct { |
| 740 | name string |
| 741 | in string |
| 742 | expected string |
| 743 | }{ |
| 744 | { |
| 745 | name: "id", |
| 746 | expected: "id", |
| 747 | }, |
| 748 | { |
| 749 | name: "CamelCase", |
| 750 | expected: "camelCase", |
| 751 | }, |
| 752 | { |
| 753 | name: "ID", |
| 754 | expected: "id", |
| 755 | }, |
| 756 | { |
| 757 | name: "DBTree", |
| 758 | expected: "dbTree", |
| 759 | }, |
| 760 | } |
| 761 | |
| 762 | for _, tt := range tests { |
| 763 | t.Run(tt.name, func(t *testing.T) { |
| 764 | assert.Equal(t, tt.expected, LowercaseFirstCharacters(tt.name)) |
| 765 | }) |
| 766 | } |
| 767 | } |
| 768 | |
| 769 | func Test_replaceInitialism(t *testing.T) { |
| 770 | type args struct { |
nothing calls this directly
no test coverage detected