Home / Function/ Test_GenericParseTypeInts() — fiber Function Reference

Test_GenericParseTypeInts() — fiber Function Reference

Architecture documentation for the Test_GenericParseTypeInts() function in helpers_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  6c6e1741_98f8_5e11_bf47_a984c2977726["Test_GenericParseTypeInts()"]
  c82e3595_b1b8_f596_c097_f26fa40159d1["helpers_test.go"]
  6c6e1741_98f8_5e11_bf47_a984c2977726 -->|defined in| c82e3595_b1b8_f596_c097_f26fa40159d1
  style 6c6e1741_98f8_5e11_bf47_a984c2977726 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

helpers_test.go lines 878–944

func Test_GenericParseTypeInts(t *testing.T) {
	t.Parallel()
	ints := []testGenericParseTypeIntCase{
		{
			value: 0,
			bits:  8,
		},
		{
			value: 1,
			bits:  8,
		},
		{
			value: 2,
			bits:  8,
		},
		{
			value: 3,
			bits:  8,
		},
		{
			value: 4,
			bits:  8,
		},
		{
			value: -1,
			bits:  8,
		},
		{
			value: math.MaxInt8,
			bits:  8,
		},
		{
			value: math.MinInt8,
			bits:  8,
		},
		{
			value: math.MaxInt16,
			bits:  16,
		},
		{
			value: math.MinInt16,
			bits:  16,
		},
		{
			value: math.MaxInt32,
			bits:  32,
		},
		{
			value: math.MinInt32,
			bits:  32,
		},
		{
			value: math.MaxInt64,
			bits:  64,
		},
		{
			value: math.MinInt64,
			bits:  64,
		},
	}

	testGenericTypeInt[int8](t, "test_genericParseTypeInt8s", ints)
	testGenericTypeInt[int16](t, "test_genericParseTypeInt16s", ints)
	testGenericTypeInt[int32](t, "test_genericParseTypeInt32s", ints)
	testGenericTypeInt[int64](t, "test_genericParseTypeInt64s", ints)
	testGenericTypeInt[int](t, "test_genericParseTypeInts", ints)
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does Test_GenericParseTypeInts() do?
Test_GenericParseTypeInts() is a function in the fiber codebase, defined in helpers_test.go.
Where is Test_GenericParseTypeInts() defined?
Test_GenericParseTypeInts() is defined in helpers_test.go at line 878.

Analyze Your Own Codebase

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

Try Supermodel Free