(t *testing.T)
| 640 | } |
| 641 | |
| 642 | func TestLowerFirst(t *testing.T) { |
| 643 | tests := []struct { |
| 644 | input string |
| 645 | want string |
| 646 | }{ |
| 647 | {"Add feature", "add feature"}, |
| 648 | {"fix bug", "fix bug"}, |
| 649 | {"", ""}, |
| 650 | {"A", "a"}, |
| 651 | {"already lower", "already lower"}, |
| 652 | } |
| 653 | |
| 654 | for _, tt := range tests { |
| 655 | t.Run(tt.input, func(t *testing.T) { |
| 656 | got := lowerFirst(tt.input) |
| 657 | if got != tt.want { |
| 658 | t.Errorf("lowerFirst(%q) = %q, want %q", tt.input, got, tt.want) |
| 659 | } |
| 660 | }) |
| 661 | } |
| 662 | } |
| 663 | |
| 664 | func TestCommitMsg_AllowedTypes(t *testing.T) { |
| 665 | types := []string{"feat", "fix", "chore", "docs", "test", "refactor"} |
nothing calls this directly
no test coverage detected