main: add more tests
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-05-13 22:41:31 +02:00
parent 44c2a69e9d
commit ecfb129096
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -14,3 +14,17 @@ func TestGreetingText(t *testing.T) {
t.Errorf("Incorrect initial greeting, want: %q, got: %q", want, got.Text) t.Errorf("Incorrect initial greeting, want: %q, got: %q", want, got.Text)
} }
} }
func TestLocalgetVersion(t *testing.T) {
want := version
got := getVersion()
if got != want {
t.Errorf("Incorrect version from getVersion, want: %q, got: %q", want, got)
}
}
// does this test even make sense?
func TestExecMain(t *testing.T) {
go main()
}