This website works better with JavaScript.
Home
Explore
Help
Sign In
brettlangdon
/
pypihub
mirror of
https://github.com/brettlangdon/pypihub.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
1
Wiki
Activity
Browse Source
Move type assertions into tests.
Coda Hale
12 years ago
parent
a412c1af77
commit
d116ca0e9b
2 changed files
with
4 additions
and
4 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-4
web/mux.go
+4
-0
web/mux_test.go
+ 0
- 4
web/mux.go
View File
@ -56,10 +56,6 @@ type Mux struct {
router
router
}
}
// Sanity check types
var
_
http
.
Handler
=
&
Mux
{
}
var
_
Handler
=
&
Mux
{
}
// New creates a new Mux without any routes or middleware.
// New creates a new Mux without any routes or middleware.
func
New
(
)
*
Mux
{
func
New
(
)
*
Mux
{
mux
:=
Mux
{
mux
:=
Mux
{
+ 4
- 0
web/mux_test.go
View File
@ -6,6 +6,10 @@ import (
"testing"
"testing"
)
)
// Sanity check types
var
_
http
.
Handler
=
&
Mux
{
}
var
_
Handler
=
&
Mux
{
}
// There's... really not a lot to do here.
// There's... really not a lot to do here.
func
TestIfItWorks
(
t
*
testing
.
T
)
{
func
TestIfItWorks
(
t
*
testing
.
T
)
{
Write
Preview
Loading…
Cancel
Save