Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
61650b21
Commit
61650b21
authored
Sep 06, 2011
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: gofmt -s -w src misc
R=r CC=golang-dev
https://golang.org/cl/4984052
parent
62b10ad0
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
20 deletions
+20
-20
verify_test.go
src/pkg/crypto/x509/verify_test.go
+5
-5
host.go
src/pkg/http/cgi/host.go
+7
-7
fcgi_test.go
src/pkg/http/fcgi/fcgi_test.go
+3
-3
read.go
src/pkg/http/spdy/read.go
+3
-3
decode_test.go
src/pkg/json/decode_test.go
+1
-1
path_test.go
src/pkg/path/filepath/path_test.go
+1
-1
No files found.
src/pkg/crypto/x509/verify_test.go
View file @
61650b21
...
@@ -31,7 +31,7 @@ var verifyTests = []verifyTest{
...
@@ -31,7 +31,7 @@ var verifyTests = []verifyTest{
dnsName
:
"www.google.com"
,
dnsName
:
"www.google.com"
,
expectedChains
:
[][]
string
{
expectedChains
:
[][]
string
{
[]
string
{
"Google"
,
"Thawte"
,
"VeriSign"
},
{
"Google"
,
"Thawte"
,
"VeriSign"
},
},
},
},
},
{
{
...
@@ -68,7 +68,7 @@ var verifyTests = []verifyTest{
...
@@ -68,7 +68,7 @@ var verifyTests = []verifyTest{
dnsName
:
"www.google.com"
,
dnsName
:
"www.google.com"
,
expectedChains
:
[][]
string
{
expectedChains
:
[][]
string
{
[]
string
{
"Google"
,
"Thawte"
,
"VeriSign"
},
{
"Google"
,
"Thawte"
,
"VeriSign"
},
},
},
},
},
{
{
...
@@ -78,7 +78,7 @@ var verifyTests = []verifyTest{
...
@@ -78,7 +78,7 @@ var verifyTests = []verifyTest{
currentTime
:
1302726541
,
currentTime
:
1302726541
,
expectedChains
:
[][]
string
{
expectedChains
:
[][]
string
{
[]
string
{
"dnssec-exp"
,
"StartCom Class 1"
,
"StartCom Certification Authority"
},
{
"dnssec-exp"
,
"StartCom Class 1"
,
"StartCom Certification Authority"
},
},
},
},
},
{
{
...
@@ -88,8 +88,8 @@ var verifyTests = []verifyTest{
...
@@ -88,8 +88,8 @@ var verifyTests = []verifyTest{
currentTime
:
1302726541
,
currentTime
:
1302726541
,
expectedChains
:
[][]
string
{
expectedChains
:
[][]
string
{
[]
string
{
"dnssec-exp"
,
"StartCom Class 1"
,
"StartCom Certification Authority"
},
{
"dnssec-exp"
,
"StartCom Class 1"
,
"StartCom Certification Authority"
},
[]
string
{
"dnssec-exp"
,
"StartCom Class 1"
,
"StartCom Certification Authority"
,
"StartCom Certification Authority"
},
{
"dnssec-exp"
,
"StartCom Class 1"
,
"StartCom Certification Authority"
,
"StartCom Certification Authority"
},
},
},
},
},
}
}
...
...
src/pkg/http/cgi/host.go
View file @
61650b21
...
@@ -32,13 +32,13 @@ import (
...
@@ -32,13 +32,13 @@ import (
var
trailingPort
=
regexp
.
MustCompile
(
`:([0-9]+)$`
)
var
trailingPort
=
regexp
.
MustCompile
(
`:([0-9]+)$`
)
var
osDefaultInheritEnv
=
map
[
string
][]
string
{
var
osDefaultInheritEnv
=
map
[
string
][]
string
{
"darwin"
:
[]
string
{
"DYLD_LIBRARY_PATH"
},
"darwin"
:
{
"DYLD_LIBRARY_PATH"
},
"freebsd"
:
[]
string
{
"LD_LIBRARY_PATH"
},
"freebsd"
:
{
"LD_LIBRARY_PATH"
},
"hpux"
:
[]
string
{
"LD_LIBRARY_PATH"
,
"SHLIB_PATH"
},
"hpux"
:
{
"LD_LIBRARY_PATH"
,
"SHLIB_PATH"
},
"irix"
:
[]
string
{
"LD_LIBRARY_PATH"
,
"LD_LIBRARYN32_PATH"
,
"LD_LIBRARY64_PATH"
},
"irix"
:
{
"LD_LIBRARY_PATH"
,
"LD_LIBRARYN32_PATH"
,
"LD_LIBRARY64_PATH"
},
"linux"
:
[]
string
{
"LD_LIBRARY_PATH"
},
"linux"
:
{
"LD_LIBRARY_PATH"
},
"solaris"
:
[]
string
{
"LD_LIBRARY_PATH"
,
"LD_LIBRARY_PATH_32"
,
"LD_LIBRARY_PATH_64"
},
"solaris"
:
{
"LD_LIBRARY_PATH"
,
"LD_LIBRARY_PATH_32"
,
"LD_LIBRARY_PATH_64"
},
"windows"
:
[]
string
{
"SystemRoot"
,
"COMSPEC"
,
"PATHEXT"
,
"WINDIR"
},
"windows"
:
{
"SystemRoot"
,
"COMSPEC"
,
"PATHEXT"
,
"WINDIR"
},
}
}
// Handler runs an executable in a subprocess with a CGI environment.
// Handler runs an executable in a subprocess with a CGI environment.
...
...
src/pkg/http/fcgi/fcgi_test.go
View file @
61650b21
...
@@ -53,13 +53,13 @@ var streamTests = []struct {
...
@@ -53,13 +53,13 @@ var streamTests = []struct {
{
"two records"
,
typeStdin
,
300
,
make
([]
byte
,
66000
),
{
"two records"
,
typeStdin
,
300
,
make
([]
byte
,
66000
),
bytes
.
Join
([][]
byte
{
bytes
.
Join
([][]
byte
{
// header for the first record
// header for the first record
[]
byte
{
1
,
typeStdin
,
0x01
,
0x2C
,
0xFF
,
0xFF
,
1
,
0
},
{
1
,
typeStdin
,
0x01
,
0x2C
,
0xFF
,
0xFF
,
1
,
0
},
make
([]
byte
,
65536
),
make
([]
byte
,
65536
),
// header for the second
// header for the second
[]
byte
{
1
,
typeStdin
,
0x01
,
0x2C
,
0x01
,
0xD1
,
7
,
0
},
{
1
,
typeStdin
,
0x01
,
0x2C
,
0x01
,
0xD1
,
7
,
0
},
make
([]
byte
,
472
),
make
([]
byte
,
472
),
// header for the empty record
// header for the empty record
[]
byte
{
1
,
typeStdin
,
0x01
,
0x2C
,
0
,
0
,
0
,
0
},
{
1
,
typeStdin
,
0x01
,
0x2C
,
0
,
0
,
0
,
0
},
},
},
nil
),
nil
),
},
},
...
...
src/pkg/http/spdy/read.go
View file @
61650b21
...
@@ -214,7 +214,7 @@ func (f *Framer) readSynStreamFrame(h ControlFrameHeader, frame *SynStreamFrame)
...
@@ -214,7 +214,7 @@ func (f *Framer) readSynStreamFrame(h ControlFrameHeader, frame *SynStreamFrame)
}
}
// Remove this condition when we bump Version to 3.
// Remove this condition when we bump Version to 3.
if
Version
>=
3
{
if
Version
>=
3
{
for
h
,
_
:=
range
frame
.
Headers
{
for
h
:=
range
frame
.
Headers
{
if
invalidReqHeaders
[
h
]
{
if
invalidReqHeaders
[
h
]
{
return
&
Error
{
InvalidHeaderPresent
,
frame
.
StreamId
}
return
&
Error
{
InvalidHeaderPresent
,
frame
.
StreamId
}
}
}
...
@@ -247,7 +247,7 @@ func (f *Framer) readSynReplyFrame(h ControlFrameHeader, frame *SynReplyFrame) o
...
@@ -247,7 +247,7 @@ func (f *Framer) readSynReplyFrame(h ControlFrameHeader, frame *SynReplyFrame) o
}
}
// Remove this condition when we bump Version to 3.
// Remove this condition when we bump Version to 3.
if
Version
>=
3
{
if
Version
>=
3
{
for
h
,
_
:=
range
frame
.
Headers
{
for
h
:=
range
frame
.
Headers
{
if
invalidRespHeaders
[
h
]
{
if
invalidRespHeaders
[
h
]
{
return
&
Error
{
InvalidHeaderPresent
,
frame
.
StreamId
}
return
&
Error
{
InvalidHeaderPresent
,
frame
.
StreamId
}
}
}
...
@@ -287,7 +287,7 @@ func (f *Framer) readHeadersFrame(h ControlFrameHeader, frame *HeadersFrame) os.
...
@@ -287,7 +287,7 @@ func (f *Framer) readHeadersFrame(h ControlFrameHeader, frame *HeadersFrame) os.
}
else
{
}
else
{
invalidHeaders
=
invalidRespHeaders
invalidHeaders
=
invalidRespHeaders
}
}
for
h
,
_
:=
range
frame
.
Headers
{
for
h
:=
range
frame
.
Headers
{
if
invalidHeaders
[
h
]
{
if
invalidHeaders
[
h
]
{
return
&
Error
{
InvalidHeaderPresent
,
frame
.
StreamId
}
return
&
Error
{
InvalidHeaderPresent
,
frame
.
StreamId
}
}
}
...
...
src/pkg/json/decode_test.go
View file @
61650b21
...
@@ -42,7 +42,7 @@ var (
...
@@ -42,7 +42,7 @@ var (
um0
,
um1
unmarshaler
// target2 of unmarshaling
um0
,
um1
unmarshaler
// target2 of unmarshaling
ump
=
&
um1
ump
=
&
um1
umtrue
=
unmarshaler
{
true
}
umtrue
=
unmarshaler
{
true
}
umslice
=
[]
unmarshaler
{
unmarshaler
{
true
}}
umslice
=
[]
unmarshaler
{{
true
}}
umslicep
=
new
([]
unmarshaler
)
umslicep
=
new
([]
unmarshaler
)
umstruct
=
ustruct
{
unmarshaler
{
true
}}
umstruct
=
ustruct
{
unmarshaler
{
true
}}
)
)
...
...
src/pkg/path/filepath/path_test.go
View file @
61650b21
...
@@ -81,7 +81,7 @@ var wincleantests = []PathTest{
...
@@ -81,7 +81,7 @@ var wincleantests = []PathTest{
func
TestClean
(
t
*
testing
.
T
)
{
func
TestClean
(
t
*
testing
.
T
)
{
tests
:=
cleantests
tests
:=
cleantests
if
runtime
.
GOOS
==
"windows"
{
if
runtime
.
GOOS
==
"windows"
{
for
i
,
_
:=
range
tests
{
for
i
:=
range
tests
{
tests
[
i
]
.
result
=
filepath
.
FromSlash
(
tests
[
i
]
.
result
)
tests
[
i
]
.
result
=
filepath
.
FromSlash
(
tests
[
i
]
.
result
)
}
}
tests
=
append
(
tests
,
wincleantests
...
)
tests
=
append
(
tests
,
wincleantests
...
)
...
...
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