Skip to content

Commit

Permalink
Fix compile issues
Browse files Browse the repository at this point in the history
The latest batch of merged PR's made lots of big changes, and
broke some tests.
  • Loading branch information
marcinromaszewicz committed Jun 29, 2022
1 parent de9733b commit 86d0620
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions internal/test/parameters/parameters_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@ func (t *testServer) GetCookie(ctx echo.Context, params GetCookieParams) error {
return nil
}

// (GET /enums)
func (t *testServer) EnumParams(ctx echo.Context, params EnumParamsParams) error {
return ctx.NoContent(http.StatusNotImplemented)
}

func TestParameterBinding(t *testing.T) {
var ts testServer
e := echo.New()
Expand Down
3 changes: 1 addition & 2 deletions pkg/runtime/styleparam_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
package runtime

import (
"github.com/google/uuid"
"testing"
"time"

Expand Down Expand Up @@ -679,7 +678,7 @@ func TestStyleParam(t *testing.T) {
assert.EqualValues(t, "date_field,1996-03-19,time_field,1996-03-19T00%3A00%3A00Z,uuid_field,baa07328-452e-40bd-aa2e-fa823ec13605", result)

// Test handling of struct that implement encoding.TextMarshaler
timeVal = time.Date(1996, time.March, 19, 0, 0, 0, 0, time.UTC)
timeVal = time.Date(1996, time.March, 19, 0, 0, 0, 0, time.UTC)

result, err = StyleParamWithLocation("simple", false, "id", ParamLocationQuery, timeVal)
assert.NoError(t, err)
Expand Down

0 comments on commit 86d0620

Please sign in to comment.