Add additional functions to the status package

This commit is contained in:
Daniel
2018-10-22 17:02:54 +02:00
parent 29d0447eec
commit b1cd19a8e8
4 changed files with 55 additions and 30 deletions

View File

@@ -5,12 +5,14 @@ import "testing"
func TestGet(t *testing.T) {
// only test for panics
GetCurrentSecurityLevel()
GetSelectedSecurityLevel()
GetThreatLevel()
GetPortmasterStatus()
GetGate17Status()
option := GetConfigByLevel("invalid")
option()
CurrentSecurityLevel()
SelectedSecurityLevel()
ThreatLevel()
PortmasterStatus()
Gate17Status()
option := ConfigIsActive("invalid")
option(0)
option = ConfigIsActiveConcurrent("invalid")
option(0)
}