gitee.com/h79/goutils@v1.22.10/common/git/cmd_test.go (about) 1 package git 2 3 import ( 4 "context" 5 "testing" 6 ) 7 8 func TestCmd(t *testing.T) { 9 c := Cmd{} 10 res, err := c.Do(context.Background(), nil, ArgsDescribe...) 11 if err != nil { 12 t.Error(err) 13 return 14 } 15 t.Log(res) 16 } 17 18 func TestVersionNo(t *testing.T) { 19 c := Cmd{} 20 ver := c.VersionNumber(context.Background(), nil) 21 t.Log(ver) 22 }