Skip to content

Commit 64f0948

Browse files
committed
fix template rootedPathName() and package tests
1 parent f9bc6c2 commit 64f0948

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

template/template.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func rootedPathName() (dir string) {
138138
}
139139

140140
// TODO: Linux and MacOS: ok. Windows: ...?
141-
regex := regexp.MustCompile("/test$")
141+
regex := regexp.MustCompile("/tests$")
142142
match := regex.Match([]byte(dir))
143143

144144
if match {

tests/about_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package test
1+
package tests
22

33
import (
44
"net/http"

tests/controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package test
1+
package tests
22

33
import (
44
"net/http"

tests/db_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package test
1+
package tests
22

33
import (
44
"testing"

tests/home_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package test
1+
package tests
22

33
import (
44
"net/http"

tests/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package test
1+
package tests
22

33
import (
44
"net/http"

tests/session_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package test
1+
package tests
22

33
import (
44
"net/http"

tests/types_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package test
1+
package tests
22

33
// test flash message: struct
44
type flash struct {

tests/user_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package test
1+
package tests
22

33
import (
44
"net/http"

0 commit comments

Comments
 (0)