MCPcopy
hub / github.com/gin-gonic/gin / TestSafeInt8

Function TestSafeInt8

utils_test.go:165–168  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

163}
164
165func TestSafeInt8(t *testing.T) {
166 assert.Equal(t, int8(100), safeInt8(100))
167 assert.Equal(t, int8(math.MaxInt8), safeInt8(int(math.MaxInt8)+123))
168}
169
170func TestSafeUint16(t *testing.T) {
171 assert.Equal(t, uint16(100), safeUint16(100))

Callers

nothing calls this directly

Calls 1

safeInt8Function · 0.85

Tested by

no test coverage detected