about summary refs log tree commit diff
path: root/router_test.go
diff options
context:
space:
mode:
authorFranck Cuny <franck@lumberjaph.net>2013-04-21 16:02:18 -0700
committerFranck Cuny <franck@lumberjaph.net>2013-04-21 16:02:18 -0700
commit4a377d7884096c4f7e1a5c9bf835f2f79ea7803b (patch)
tree7bec669de4e6d73e6051fdd950d5cb67218c4829 /router_test.go
parentSimplify the dispatch's workflow. (diff)
downloadpath-router-4a377d7884096c4f7e1a5c9bf835f2f79ea7803b.tar.gz
Apply gofmt
Diffstat (limited to 'router_test.go')
-rw-r--r--router_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/router_test.go b/router_test.go
index 6003c28..497f547 100644
--- a/router_test.go
+++ b/router_test.go
@@ -1,10 +1,10 @@
 package mooh
 
 import (
+	"fmt"
 	"net/http"
 	"net/url"
 	"testing"
-	"fmt"
 )
 
 func testRoute(req *Request) (Response, error) {
@@ -45,7 +45,7 @@ func TestMatch(t *testing.T) {
 		m, _ := router.Match(r)
 		if m == nil {
 			t.Fatal()
-		}else{
+		} else {
 			fmt.Println(fmt.Sprintf("%s match for %s", p.Path, m.Path))
 		}
 	}
@@ -67,7 +67,7 @@ func TestMatchOptional(t *testing.T) {
 		m, _ := router.Match(r)
 		if m == nil {
 			t.Fatal()
-		}else{
+		} else {
 			fmt.Println(fmt.Sprintf("%s match for %s", p.Path, m.Path))
 		}
 	}
@@ -82,7 +82,7 @@ func TestAmbigiousSimple(t *testing.T) {
 	m, _ := router.Match(r)
 	if m == nil {
 		t.Fatal()
-	}else{
+	} else {
 		fmt.Println(fmt.Sprintf("%s match for %s", r.URL.Path, m.Path))
 	}
 }