github.com/artisanhe/tools@v1.0.1-0.20210607022958-19a8fef2eb04/project/commit_msg/commit_msg_test.go (about) 1 package commit_msg 2 3 import ( 4 "testing" 5 ) 6 7 func Test_CheckCommit(t *testing.T) { 8 t.Log(CheckCommit("FIX ZF-1 do what for ...")) 9 t.Log(CheckCommit("FIX ZF-1 xxxxx")) 10 t.Log(CheckCommit("BUG")) 11 t.Log(CheckCommit("TASK ")) 12 }