Skip to content
This repository was archived by the owner on Apr 12, 2019. It is now read-only.

Commit f723a92

Browse files
committed
Add test for CommitCount
1 parent 355714a commit f723a92

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

commit_test.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright 2017 The Gitea Authors. All rights reserved.
2+
// Use of this source code is governed by a MIT-style
3+
// license that can be found in the LICENSE file.
4+
5+
package git
6+
7+
import (
8+
"testing"
9+
"github.com/stretchr/testify/assert"
10+
)
11+
12+
func TestCommitCount(t *testing.T) {
13+
commitsCount, _ := CommitsCount(".", "d86a90f801dbe279db095437a8c7ea42c60e8d98")
14+
assert.Equal(t, int64(3), commitsCount)
15+
}

0 commit comments

Comments
 (0)