18 lines
383 B
Go
18 lines
383 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").getLatestTagOrCommitID()
|
|
assert.NoError(t, err)
|
|
t.Log(output)
|
|
|
|
output, err = lsRemote.setUrl("https://github.com/spf13/cobra").getLatestTagOrCommitID()
|
|
assert.NoError(t, err)
|
|
t.Log(output)
|
|
}
|