gin-gonic-gin/render
Amirhf 216a4a7c28
test(render): add comprehensive tests for MsgPack render (#4537)
* test(render): add comprehensive tests for MsgPack render

* test(render): make msgpack tests deterministic

Decode the rendered msgpack output and assert values instead of comparing raw bytes (which can vary with map iteration order).
Enable MsgpackHandle.RawToString so msgpack strings decode as Go strings.

---------

Co-authored-by: AmirHossein Fallah <amirhossein.fallah@arvancloud.ir>
2026-02-18 00:38:36 +08:00
..
bson.go feat(render): add bson protocol (#4145) 2026-01-27 10:09:01 +08:00
data.go chore: update go.mod and remove space from copyright (#3158) 2022-05-28 10:42:28 +08:00
html.go ci(golangci-lint): update configuration and fix lint issues (#4247) 2025-05-23 14:46:48 +08:00
json.go feat: support custom json codec at runtime (#3391) 2025-06-16 23:16:36 +08:00
msgpack.go chore: support min go version 1.18 (#3511) 2023-03-01 10:03:48 +08:00
protobuf.go chore: update go.mod and remove space from copyright (#3158) 2022-05-28 10:42:28 +08:00
reader_test.go chore: update go.mod and remove space from copyright (#3158) 2022-05-28 10:42:28 +08:00
reader.go refactor(render): remove headers parameter from writeHeader (#4353) 2025-09-19 08:39:17 +08:00
redirect.go chore: update go.mod and remove space from copyright (#3158) 2022-05-28 10:42:28 +08:00
render_msgpack_test.go test(render): add comprehensive tests for MsgPack render (#4537) 2026-02-18 00:38:36 +08:00
render_test.go feat(render): add bson protocol (#4145) 2026-01-27 10:09:01 +08:00
render.go chore(refactor): modify interface check way (#3855) 2024-03-06 22:27:21 +08:00
text.go chore: update go.mod and remove space from copyright (#3158) 2022-05-28 10:42:28 +08:00
toml.go chore(render): do not export tomlContentType anymore (#4319) 2025-08-02 12:27:59 +08:00
xml.go chore: update go.mod and remove space from copyright (#3158) 2022-05-28 10:42:28 +08:00
yaml.go chroe: migrate yaml package to github.com/goccy/go-yaml (#4272) 2025-06-21 12:38:28 +08:00