Add support for travis, coveralls and appveyor
This commit also adds further tests.
This commit is contained in:
+8
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user