Add APIKey authentification

This commit is contained in:
TeoV
2018-06-06 10:00:02 -04:00
committed by Dan Christian Bogos
parent 3543d10e9c
commit ebc419771d
22 changed files with 604 additions and 190 deletions

View File

@@ -103,3 +103,14 @@ func TestMapStringToInt64(t *testing.T) {
t.Errorf("Expecting: %+v, received: %+v", t1, t3)
}
}
func TestMapHasKey(t *testing.T) {
mp := ParseStringMap("Item1;Item2;Item3")
if mp.HasKey("Item1") != true {
t.Errorf("Expecting: true, received: %+v", mp.HasKey("Item1"))
}
if mp.HasKey("Item4") != false {
t.Errorf("Expecting: true, received: %+v", mp.HasKey("Item4"))
}
}