镜像自地址
https://github.com/astaxie/beego.git
已同步 2025-07-17 18:52:16 +00:00
Add two test cases for ParseForm
这个提交包含在:
@@ -27,6 +27,12 @@ func TestParseForm(t *testing.T) {
|
||||
if err := ParseForm(form, &u); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if u.Id != 0 {
|
||||
t.Error("Id should not be changed")
|
||||
}
|
||||
if len(u.tag) != 0 {
|
||||
t.Error("tag should not be changed")
|
||||
}
|
||||
if u.Name.(string) != "test" {
|
||||
t.Error("should be equal")
|
||||
}
|
||||
|
在新工单中引用
屏蔽一个用户