(t *testing.T)
| 350 | } |
| 351 | |
| 352 | func 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 | |
| 362 | func TestDefaultUserAgent(t *testing.T) { |
| 363 | c := NewClient(Config{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…