mirror of
https://github.com/lukaszraczylo/semver-generator.git
synced 2026-07-07 04:04:39 +00:00
Add dummy autoupdater.
This commit is contained in:
+2
-1
@@ -1 +1,2 @@
|
|||||||
semver-gen
|
semver-gen
|
||||||
|
coverage.out
|
||||||
+22
-1
@@ -1,6 +1,8 @@
|
|||||||
package cmd
|
package cmd
|
||||||
|
|
||||||
import "testing"
|
import (
|
||||||
|
"testing"
|
||||||
|
)
|
||||||
|
|
||||||
func Test_checkLatestRelease(t *testing.T) {
|
func Test_checkLatestRelease(t *testing.T) {
|
||||||
tests := []struct {
|
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)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user