use revel 1.0.0 && go module

This commit is contained in:
lealife committed 2021-03-26 14:19:53 +08:00
1 parent 5e61291703
commit 1b006b83ad
801 files changed
+228 -207009

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
package tests
import (
"github.com/revel/revel/testing"
)
type AppTest struct {
testing.TestSuite
}
func (t *AppTest) Before() {
println("Set up")
}
func (t *AppTest) TestThatIndexPageWorks() {
t.Get("/")
t.AssertOk()
t.AssertContentType("text/html; charset=utf-8")
}
func (t *AppTest) After() {
println("Tear down")
}
-3
View File
@@ -1,3 +0,0 @@
package tests
func a() {
}