Young Xu
72c9cc2f15
docs: readme fix: upgrade with commit id feat: log to logrus upgrade: lormatter feat: strong search go module version fix: github repo no version fix: ignore google.golang.org upgrade: github api first commit
18 lines
365 B
Go
18 lines
365 B
Go
package gomod
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestNormalUrlGetTag(t *testing.T) {
|
|
output, err := lsRemote.setUrl("https://gitter.top/coco/bootstrap").tagOrCommitID()
|
|
assert.NoError(t, err)
|
|
t.Log(output)
|
|
|
|
output, err = lsRemote.setUrl("https://github.com/spf13/cobra").tagOrCommitID()
|
|
assert.NoError(t, err)
|
|
t.Log(output)
|
|
}
|