From 5c8c667a2a6abff0c79f3487e6e2dba59bb37347 Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Thu, 20 Jun 2019 17:14:11 +0200 Subject: [PATCH] Increase server package's coverage by adding DONTCOVER --- server/start.go | 2 ++ server/test_helpers.go | 2 ++ server/util.go | 2 ++ 3 files changed, 6 insertions(+) diff --git a/server/start.go b/server/start.go index 189a2c866899..e0df4baaff90 100644 --- a/server/start.go +++ b/server/start.go @@ -151,3 +151,5 @@ func startInProcess(ctx *Context, appCreator AppCreator) (*node.Node, error) { // run forever (the node will not be returned) select {} } + +// DONTCOVER diff --git a/server/test_helpers.go b/server/test_helpers.go index 120d7b17b592..1f87a518b951 100644 --- a/server/test_helpers.go +++ b/server/test_helpers.go @@ -52,3 +52,5 @@ func SetupViper(t *testing.T) func() { } } } + +// DONTCOVER diff --git a/server/util.go b/server/util.go index 9ee927d2cfa4..f69d11ebfbea 100644 --- a/server/util.go +++ b/server/util.go @@ -256,3 +256,5 @@ func addrToIP(addr net.Addr) net.IP { } return ip } + +// DONTCOVER