mirror of
https://github.com/holos-run/holos.git
synced 2026-03-20 01:04:59 +00:00
14 lines
199 B
Go
14 lines
199 B
Go
package logger
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
)
|
|
|
|
func TestLoggerFromContext(t *testing.T) {
|
|
log := FromContext(context.Background())
|
|
if log == nil {
|
|
t.Fatalf("want slog.Default() got nil")
|
|
}
|
|
}
|