Improve test coverage.

This commit is contained in:
2021-05-15 00:27:04 +01:00
parent 6d5f8903bb
commit d0924c948d
2 changed files with 25 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
package cmd
import "testing"
func Test_checkLatestRelease(t *testing.T) {
tests := []struct {
name string
want string
want1 bool
}{
{
name: "Check latest release",
want1: true,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
_, got1 := checkLatestRelease()
if got1 != tt.want1 {
t.Errorf("checkLatestRelease() got1 = %v, want %v", got1, tt.want1)
}
})
}
}