gomod/gomod_test.go

21 lines
351 B
Go
Raw Normal View History

2023-07-22 08:00:31 +00:00
package gomod
import (
2023-07-22 08:35:59 +00:00
"fmt"
2023-07-22 08:00:31 +00:00
"testing"
"github.com/stretchr/testify/assert"
)
func TestGetTag(t *testing.T) {
value, err := getCommitID("https://github.com/spf13/cobra")
assert.NoError(t, err)
t.Log(value)
}
2023-07-22 08:35:59 +00:00
func TestRegexp(t *testing.T) {
var url = "github.com/google/go-github/v53"
ower, repo := parseUrl(url)
fmt.Println(ower, repo)
}