(t *testing.T)
| 1498 | } |
| 1499 | |
| 1500 | func TestLogger(t *testing.T) { |
| 1501 | e := New() |
| 1502 | c := e.NewContext(nil, nil) |
| 1503 | |
| 1504 | log1 := c.Logger() |
| 1505 | assert.NotNil(t, log1) |
| 1506 | assert.Equal(t, e.Logger, log1) |
| 1507 | |
| 1508 | customLogger := slog.New(slog.NewTextHandler(os.Stdout, nil)) |
| 1509 | c.SetLogger(customLogger) |
| 1510 | assert.Equal(t, customLogger, c.Logger()) |
| 1511 | |
| 1512 | // Resetting the context returns the initial Echo logger |
| 1513 | c.Reset(nil, nil) |
| 1514 | assert.Equal(t, e.Logger, c.Logger()) |
| 1515 | } |
| 1516 | |
| 1517 | func TestRouteInfo(t *testing.T) { |
| 1518 | e := New() |
nothing calls this directly
no test coverage detected
searching dependent graphs…