Home / Function/ TestContextGetFloat32() — gin Function Reference

TestContextGetFloat32() — gin Function Reference

Architecture documentation for the TestContextGetFloat32() function in context_test.go from the gin codebase.

Entity Profile

Relationship Graph

Source Code

context_test.go lines 493–499

func TestContextGetFloat32(t *testing.T) {
	c, _ := CreateTestContext(httptest.NewRecorder())
	key := "float32"
	value := float32(3.14)
	c.Set(key, value)
	assert.InDelta(t, value, c.GetFloat32(key), 0.01)
}

Domain

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free