Add dummy autoupdater.

This commit is contained in:
2021-05-15 17:37:02 +01:00
parent 29ad85b62a
commit a9949ee255
2 changed files with 24 additions and 2 deletions
+2 -1
View File
@@ -1 +1,2 @@
semver-gen
semver-gen
coverage.out
+22 -1
View File
@@ -1,6 +1,8 @@
package cmd
import "testing"
import (
"testing"
)
func Test_checkLatestRelease(t *testing.T) {
tests := []struct {
@@ -22,3 +24,22 @@ func Test_checkLatestRelease(t *testing.T) {
})
}
}
func Test_updatePackage(t *testing.T) {
tests := []struct {
name string
want bool
}{
{
name: "Run autoupdater",
want: true,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := updatePackage(); got != tt.want {
t.Errorf("updatePackage() = %v, want %v", got, tt.want)
}
})
}
}