update coverage.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-05-04 09:40:48 +08:00
parent 40902070c5
commit 3c03839e2e
1 changed files with 8 additions and 0 deletions

View File

@ -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)
}