MCPcopy Create free account
hub / github.com/driangle/taskmd / TestLowerFirst

Function TestLowerFirst

apps/cli/internal/cli/commit_msg_test.go:642–662  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

640}
641
642func 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
664func TestCommitMsg_AllowedTypes(t *testing.T) {
665 types := []string{"feat", "fix", "chore", "docs", "test", "refactor"}

Callers

nothing calls this directly

Calls 1

lowerFirstFunction · 0.85

Tested by

no test coverage detected