(t *testing.T)
| 130 | } |
| 131 | |
| 132 | func TestErrorAs(t *testing.T) { |
| 133 | err := fmt.Errorf("wrapped: %w", huma.Error400BadRequest("test")) |
| 134 | |
| 135 | var e huma.StatusError |
| 136 | require.ErrorAs(t, err, &e) |
| 137 | assert.Equal(t, 400, e.GetStatus()) |
| 138 | } |
| 139 | |
| 140 | func TestErrorWithHeaders(t *testing.T) { |
| 141 | _, api := humatest.New(t, huma.DefaultConfig("Test API", "1.0.0")) |
nothing calls this directly
no test coverage detected
searching dependent graphs…