mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-15 21:06:39 +08:00
chroe: gofmt modifies the code format
This commit is contained in:
parent
891b33f888
commit
d7acf06fba
@ -2017,7 +2017,7 @@ func TestContextShouldBindBodyWithJSON(t *testing.T) {
|
|||||||
}
|
}
|
||||||
objJSON := typeJSON{}
|
objJSON := typeJSON{}
|
||||||
|
|
||||||
if tt.bindingBody == binding.JSON{
|
if tt.bindingBody == binding.JSON {
|
||||||
assert.NoError(t, c.ShouldBindBodyWithJSON(&objJSON))
|
assert.NoError(t, c.ShouldBindBodyWithJSON(&objJSON))
|
||||||
assert.Equal(t, typeJSON{"FOO"}, objJSON)
|
assert.Equal(t, typeJSON{"FOO"}, objJSON)
|
||||||
}
|
}
|
||||||
@ -2091,7 +2091,7 @@ func TestContextShouldBindBodyWithXML(t *testing.T) {
|
|||||||
assert.Equal(t, typeXML{"FOO"}, objXML)
|
assert.Equal(t, typeXML{"FOO"}, objXML)
|
||||||
}
|
}
|
||||||
|
|
||||||
if tt.bindingBody == binding.YAML{
|
if tt.bindingBody == binding.YAML {
|
||||||
assert.Error(t, c.ShouldBindBodyWithXML(&objXML))
|
assert.Error(t, c.ShouldBindBodyWithXML(&objXML))
|
||||||
assert.Equal(t, typeXML{}, objXML)
|
assert.Equal(t, typeXML{}, objXML)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user