mirror of
https://github.com/kataras/iris.git
synced 2025-12-23 04:47:02 +00:00
a bit linting and some tests are online again
Former-commit-id: bd5463a169a36b078dba1c1b6e7dd3ffbd627617
This commit is contained in:
18
core/logger/logger_test.go
Normal file
18
core/logger/logger_test.go
Normal file
@@ -0,0 +1,18 @@
|
||||
// black-box testing
|
||||
package logger_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"testing"
|
||||
|
||||
"github.com/kataras/iris/core/logger"
|
||||
)
|
||||
|
||||
func TestLog(t *testing.T) {
|
||||
msg := "Hello this is me"
|
||||
l := &bytes.Buffer{}
|
||||
logger.Log(l, msg)
|
||||
if expected, got := msg, l.String(); expected != got {
|
||||
t.Fatalf("expected %s but got %s", expected, got)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user