diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 3e6a49b..42f7bc3 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -61,6 +61,5 @@ jobs: - name: Run tests run: | - pwd - go test -v -cover ./... + go test -cover ./... # go run ./cmd/chlog last head diff --git a/info_test.go b/info_test.go index 2305b9a..912ef86 100644 --- a/info_test.go +++ b/info_test.go @@ -185,13 +185,13 @@ func testBranchInfosSearchV2(bis *gitw.BranchInfos, t *testing.T) { mch := brinfo.NewGlobMatch("*new*") opt := &gitw.SearchOpt{Limit: 5, Flag: gitw.BrSearchAll} rets := bis.SearchV2(mch, opt) - assert.Len(t, rets, 3) + assert.Len(t, rets, 4) // search v2 use glob on local opt.Flag = gitw.BrSearchLocal mch = brinfo.NewGlobMatch("*new*") rets = bis.SearchV2(mch, opt) - assert.Len(t, rets, 1) + assert.Len(t, rets, 2) // search v2 use contains mch = brinfo.NewContainsMatch("new")