mirror of https://github.com/synctv-org/synctv
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
519 B
Go
33 lines
519 B
Go
package version_test
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/synctv-org/synctv/internal/version"
|
|
)
|
|
|
|
func TestCheckLatest(t *testing.T) {
|
|
v, err := version.NewVersionInfo()
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
s, err := v.CheckLatest(context.Background())
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
t.Log(s)
|
|
}
|
|
|
|
func TestLatestBinaryURL(t *testing.T) {
|
|
v, err := version.NewVersionInfo()
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
s, err := v.LatestBinaryURL(context.Background())
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
t.Log(s)
|
|
}
|