Add support for travis, coveralls and appveyor

This commit also adds further tests.
This commit is contained in:
Lawrence Woodman
2016-07-05 14:53:08 +01:00
parent d97d87340b
commit 1364d3816f
9 changed files with 215 additions and 44 deletions
+8 -1
View File
@@ -5,9 +5,16 @@
package service
import (
"runtime"
"strings"
"testing"
)
func TestPlatformName(t *testing.T) {
t.Logf("Platform is %v", Platform())
got := Platform()
t.Logf("Platform is %v", got)
wantPrefix := runtime.GOOS + "-"
if !strings.HasPrefix(got, wantPrefix) {
t.Errorf("Platform() want: /^%s.*$/, got: %s", wantPrefix, got)
}
}