1
0
mirror of https://github.com/go-gitea/git.git synced 2026-02-05 06:45:03 +01:00
Files
git/commit_test.go
David Schneiderbauer 31f4b8e8c8 fix git version below 2.7 (#119)
* fix git version below 2.7

* fmt

* minor code improvement

* copyright + import order

* fmt
2018-05-26 13:17:21 +08:00

17 lines
401 B
Go

// Copyright 2017 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package git
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestCommitsCount(t *testing.T) {
commitsCount, _ := CommitsCount(".", "d86a90f801dbe279db095437a8c7ea42c60e8d98")
assert.Equal(t, int64(3), commitsCount)
}