mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
c4f5fae561
Former-commit-id: bd5463a169a36b078dba1c1b6e7dd3ffbd627617
19 lines
325 B
Go
19 lines
325 B
Go
// 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)
|
|
}
|
|
}
|