From 3c03839e2e715c091fc49a0203d4129b0456ff5e Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 4 May 2016 09:40:48 +0800 Subject: [PATCH] update coverage. Signed-off-by: Bo-Yi Wu --- config/config_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/config_test.go b/config/config_test.go index ae694d8..158f0a7 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -43,3 +43,11 @@ func TestReadConfig(t *testing.T) { assert.Equal(t, "8088", config.Core.Port) assert.True(t, config.Android.Enabled) } + +// Test config file. +func TestDefaultConfig(t *testing.T) { + config := BuildDefaultPushConf() + + assert.Equal(t, "8088", config.Core.Port) + assert.False(t, config.Android.Enabled) +}