1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-07-16 10:14:33 -04:00
v2fly/tools/git/git_test.go
Darien Raymond fa7c1069bc more update
2015-12-02 16:27:55 +00:00

25 lines
451 B
Go

package git
import (
"testing"
v2testing "github.com/v2ray/v2ray-core/testing"
"github.com/v2ray/v2ray-core/testing/assert"
)
func TestRevParse(t *testing.T) {
v2testing.Current(t)
rev, err := RevParse("HEAD")
assert.Error(err).IsNil()
assert.Int(len(rev)).GreaterThan(0)
}
func TestRepoVersion(t *testing.T) {
v2testing.Current(t)
version, err := RepoVersionHead()
assert.Error(err).IsNil()
assert.Int(len(version)).GreaterThan(0)
}