Init project
This commit is contained in:
15
internal/tools/git/gitlib_test.go
Normal file
15
internal/tools/git/gitlib_test.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package git_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/allanger/yaho/internal/tools/git"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestGitHttpClone(t *testing.T) {
|
||||
gitlib := &git.GitLib{}
|
||||
path, err := gitlib.CloneRepo("https://github.com/db-operator/db-operator.git", "main")
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, "test", path)
|
||||
}
|
Reference in New Issue
Block a user