1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-11-23 12:02:58 -05:00

massive refactoring against unit test lib

This commit is contained in:
Darien Raymond
2015-12-02 14:27:18 +00:00
parent cee85bdf26
commit 0a2e4343bc
44 changed files with 327 additions and 317 deletions

View File

@@ -3,11 +3,11 @@ package git
import (
"testing"
"github.com/v2ray/v2ray-core/testing/unit"
"github.com/v2ray/v2ray-core/testing/assert"
)
func TestRevParse(t *testing.T) {
assert := unit.Assert(t)
v2testing.Current(t)
rev, err := RevParse("HEAD")
assert.Error(err).IsNil()
@@ -15,7 +15,7 @@ func TestRevParse(t *testing.T) {
}
func TestRepoVersion(t *testing.T) {
assert := unit.Assert(t)
v2testing.Current(t)
version, err := RepoVersionHead()
assert.Error(err).IsNil()