loginsrv

Unnamed repository; edit this file 'description' to name the repository.
git clone git@jamesshield.xyz:repos/loginsrv.git
Log | Files | Refs | README | LICENSE

commit 550bed11a6917c74d4c88ebe41a93696a06aecdf
parent 51ca74373877d30928a3e17d64d50cbedd17ee58
Author: Sebastian Mancke <s.mancke@tarent.de>
Date:   Wed, 14 Mar 2018 09:17:45 +0100

Merge pull request #76 from magikstm/Add-Test-In-Logging-1

Add a missing test in logger.go
Diffstat:
Mlogging/logger_test.go | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/logging/logger_test.go b/logging/logger_test.go @@ -50,6 +50,12 @@ func Test_Logger_Set(t *testing.T) { a.Regexp(`^time.* level\=error msg\=oops foo\=bar.*`, b.String()) } +func Test_Logger_Set_Invalid(t *testing.T) { + err := Set("foo", true) + a := assert.New(t) + a.Equal(err.Error(), "not a valid logrus Level: \"foo\"") +} + func Test_Logger_Call(t *testing.T) { a := assert.New(t)