@@ -38,7 +38,7 @@ var testProducers = map[string]runtime.Producer{
3838const (
3939 valBirdWatching = "Bird watching"
4040 valJohn = "John"
41- valOrganTrail = "Organ trail "
41+ valOregonTrail = "Oregon Trail "
4242 valTom = "Tom"
4343 testFile1 = "request.go"
4444 testFile2 = "request_test.go"
@@ -126,7 +126,7 @@ func mustGetFile(pth string) *os.File {
126126func TestBuildRequest_SetBody (t * testing.T ) {
127127 r := New (http .MethodGet , "/flats/{id}/?hello=world" , nil )
128128
129- bd := []struct { Name , Hobby string }{{valTom , valOrganTrail }, {valJohn , valBirdWatching }}
129+ bd := []struct { Name , Hobby string }{{valTom , valOregonTrail }, {valJohn , valBirdWatching }}
130130
131131 _ = r .SetBodyParam (bd )
132132 assert .Equal (t , bd , r .payload )
@@ -210,7 +210,7 @@ func TestBuildRequest_BuildHTTP_NoPayload(t *testing.T) {
210210}
211211
212212func TestBuildRequest_BuildHTTP_Payload (t * testing.T ) {
213- bd := []struct { Name , Hobby string }{{valTom , valOrganTrail }, {valJohn , valBirdWatching }}
213+ bd := []struct { Name , Hobby string }{{valTom , valOregonTrail }, {valJohn , valBirdWatching }}
214214 reqWrtr := runtime .ClientRequestWriterFunc (func (req runtime.ClientRequest , _ strfmt.Registry ) error {
215215 _ = req .SetBodyParam (bd )
216216 _ = req .SetQueryParam ("hello" , "world" )
@@ -237,7 +237,7 @@ func TestBuildRequest_BuildHTTP_Payload(t *testing.T) {
237237}
238238
239239func TestBuildRequest_BuildHTTP_SetsInAuth (t * testing.T ) {
240- bd := []struct { Name , Hobby string }{{valTom , valOrganTrail }, {valJohn , valBirdWatching }}
240+ bd := []struct { Name , Hobby string }{{valTom , valOregonTrail }, {valJohn , valBirdWatching }}
241241 reqWrtr := runtime .ClientRequestWriterFunc (func (req runtime.ClientRequest , _ strfmt.Registry ) error {
242242 _ = req .SetBodyParam (bd )
243243 _ = req .SetQueryParam ("hello" , "wrong" )
@@ -277,7 +277,7 @@ func TestBuildRequest_BuildHTTP_XMLPayload(t *testing.T) {
277277 XMLName xml.Name `xml:"person"`
278278 Name string `xml:"name"`
279279 Hobby string `xml:"hobby"`
280- }{{xml.Name {}, valTom , valOrganTrail }, {xml.Name {}, valJohn , valBirdWatching }}
280+ }{{xml.Name {}, valTom , valOregonTrail }, {xml.Name {}, valJohn , valBirdWatching }}
281281 reqWrtr := runtime .ClientRequestWriterFunc (func (req runtime.ClientRequest , _ strfmt.Registry ) error {
282282 _ = req .SetBodyParam (bd )
283283 _ = req .SetQueryParam ("hello" , "world" )
0 commit comments