Simplify files via gofmt -s (thanks, Go Report Card!)
This commit is contained in:
@@ -397,8 +397,8 @@ func TestListRoutesReturnsTwoElementsList(t *testing.T) {
|
||||
|
||||
funcList = func() []model.Route {
|
||||
return []model.Route{
|
||||
model.Route{Method: "GET", Pattern: "/hello1", Entrypoint: "/bin/sh -c", Command: "echo Hello World1 | kapow set /response/body", Index: 0, ID: "ROUTE_XXXXXXXXXXXXXXXXXX"},
|
||||
model.Route{Method: "GET", Pattern: "/hello", Entrypoint: "/bin/sh -c", Command: "echo Hello World | kapow set /response/body", Index: 1, ID: "ROUTE_YYYYYYYYYYYYYYYYYY"},
|
||||
{Method: "GET", Pattern: "/hello1", Entrypoint: "/bin/sh -c", Command: "echo Hello World1 | kapow set /response/body", Index: 0, ID: "ROUTE_XXXXXXXXXXXXXXXXXX"},
|
||||
{Method: "GET", Pattern: "/hello", Entrypoint: "/bin/sh -c", Command: "echo Hello World | kapow set /response/body", Index: 1, ID: "ROUTE_YYYYYYYYYYYYYYYYYY"},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -417,8 +417,8 @@ func TestListRoutesReturnsTwoElementsList(t *testing.T) {
|
||||
}
|
||||
|
||||
expectedRouteList := []model.Route{
|
||||
model.Route{Method: "GET", Pattern: "/hello1", Entrypoint: "/bin/sh -c", Command: "echo Hello World1 | kapow set /response/body", Index: 0, ID: "ROUTE_XXXXXXXXXXXXXXXXXX"},
|
||||
model.Route{Method: "GET", Pattern: "/hello", Entrypoint: "/bin/sh -c", Command: "echo Hello World | kapow set /response/body", Index: 1, ID: "ROUTE_YYYYYYYYYYYYYYYYYY"},
|
||||
{Method: "GET", Pattern: "/hello1", Entrypoint: "/bin/sh -c", Command: "echo Hello World1 | kapow set /response/body", Index: 0, ID: "ROUTE_XXXXXXXXXXXXXXXXXX"},
|
||||
{Method: "GET", Pattern: "/hello", Entrypoint: "/bin/sh -c", Command: "echo Hello World | kapow set /response/body", Index: 1, ID: "ROUTE_YYYYYYYYYYYYYYYYYY"},
|
||||
}
|
||||
|
||||
if !reflect.DeepEqual(respJson, expectedRouteList) {
|
||||
|
||||
@@ -229,7 +229,7 @@ func TestServeHTTPCallsInnerMuxAfterAcquiringLock(t *testing.T) {
|
||||
func TestUpdateUpdatesMuxWithProvideRouteList(t *testing.T) {
|
||||
sm := New()
|
||||
rs := []model.Route{
|
||||
model.Route{
|
||||
{
|
||||
Method: "GET",
|
||||
Pattern: "/",
|
||||
Entrypoint: "/bin/sh -c",
|
||||
|
||||
Reference in New Issue
Block a user