|
|
|
@ -5,15 +5,9 @@ import (
|
|
|
|
"testing"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
func TestProjectRoot(t *testing.T) {
|
|
|
|
|
|
|
|
if !strings.Contains(ProjectRoot, "abrolgo") {
|
|
|
|
|
|
|
|
t.Errorf("ProjectRoot is not correct: %s", ProjectRoot)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func TestGetBasePath(t *testing.T) {
|
|
|
|
func TestGetBasePath(t *testing.T) {
|
|
|
|
basePath := GetBasePath()
|
|
|
|
basePath := ProjectRoot()
|
|
|
|
if !strings.Contains(basePath, "abrolgo") {
|
|
|
|
if !strings.Contains(basePath, "abrolgo") {
|
|
|
|
t.Errorf("GetBasePath is not correct: %s", basePath)
|
|
|
|
t.Errorf("ProjectRoot is not correct: %s", basePath)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|