MCPcopy Create free account
hub / github.com/facebook/time / TestWithLogger

Function TestWithLogger

ntrip/client_test.go:352–360  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

350}
351
352func TestWithLogger(t *testing.T) {
353 customLogger := slog.New(slog.NewTextHandler(io.Discard, nil))
354 c := NewClient(Config{
355 Caster: "localhost:2101",
356 Mountpoint: "/M",
357 Password: "p",
358 }, WithLogger(customLogger))
359 require.Same(t, customLogger, c.logger)
360}
361
362func TestDefaultUserAgent(t *testing.T) {
363 c := NewClient(Config{

Callers

nothing calls this directly

Calls 2

WithLoggerFunction · 0.85
NewClientFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…