mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-08 00:22:14 +01:00
25 lines
466 B
Go
25 lines
466 B
Go
package chromium
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"go.uber.org/zap"
|
|
)
|
|
|
|
func TestDebugLogger_Write(t *testing.T) {
|
|
actual, err := debugLogger{logger: zap.NewNop()}.Write([]byte("foo"))
|
|
expected := len([]byte("foo"))
|
|
|
|
if actual != expected {
|
|
t.Errorf("expected %d but got %d", expected, actual)
|
|
}
|
|
|
|
if err != nil {
|
|
t.Errorf("expected not error but got: %v", err)
|
|
}
|
|
}
|
|
|
|
func TestDebugLogger_Printf(t *testing.T) {
|
|
debugLogger{logger: zap.NewNop()}.Printf("%s", "foo")
|
|
}
|