From ab24e1b6d9ea14c6b1b31774c48866c20b7f1ef0 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 4 Aug 2015 21:48:38 +0800 Subject: [PATCH] unit test --- util/go_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/util/go_test.go b/util/go_test.go index 4bec072..f700ccc 100644 --- a/util/go_test.go +++ b/util/go_test.go @@ -21,6 +21,14 @@ import ( "testing" ) +func TestGetCrossPlatforms(t *testing.T) { + crossPlatforms := Go.GetCrossPlatforms() + + if len(crossPlatforms) < 1 { + t.Error("should have one platform at least") + } +} + func TestGetAPIPath(t *testing.T) { apiPath := Go.GetAPIPath()