Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
b4e35629
Commit
b4e35629
authored
Nov 01, 2011
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http: avoid name error in test
R=adg CC=golang-dev
https://golang.org/cl/5316070
parent
758200f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/pkg/http/request_test.go
src/pkg/http/request_test.go
+4
-4
No files found.
src/pkg/http/request_test.go
View file @
b4e35629
...
...
@@ -49,7 +49,7 @@ func TestPostQuery(t *testing.T) {
type
stringMap
map
[
string
][]
string
type
parseContentTypeTest
struct
{
contentType
stringMap
err
or
bool
err
bool
}
var
parseContentTypeTests
=
[]
parseContentTypeTest
{
...
...
@@ -58,7 +58,7 @@ var parseContentTypeTests = []parseContentTypeTest{
{
contentType
:
stringMap
{
"Content-Type"
:
{
"text/plain; boundary="
}}},
{
contentType
:
stringMap
{
"Content-Type"
:
{
"application/unknown"
}},
err
or
:
true
,
err
:
true
,
},
}
...
...
@@ -70,10 +70,10 @@ func TestPostContentTypeParsing(t *testing.T) {
Body
:
ioutil
.
NopCloser
(
bytes
.
NewBufferString
(
"body"
)),
}
err
:=
req
.
ParseForm
()
if
!
test
.
err
or
&&
err
!=
nil
{
if
!
test
.
err
&&
err
!=
nil
{
t
.
Errorf
(
"test %d: Unexpected error: %v"
,
i
,
err
)
}
if
test
.
err
or
&&
err
==
nil
{
if
test
.
err
&&
err
==
nil
{
t
.
Errorf
(
"test %d should have returned error"
,
i
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment