mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-23 18:22:23 +08:00
add test case for ensureNotPointer
This commit is contained in:
parent
e93bd54a28
commit
6b0ad1082e
@ -984,3 +984,7 @@ func requestWithBody(method, path, body string) (req *http.Request) {
|
||||
req, _ = http.NewRequest(method, path, bytes.NewBufferString(body))
|
||||
return
|
||||
}
|
||||
|
||||
func TestEnsureNotPointer(t *testing.T) {
|
||||
assert.Panics(t, func() { ensureNotPointer(&struct{}{}) })
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user