Home / Function/ TestClientCBORUnmarshalOverride() — fiber Function Reference

TestClientCBORUnmarshalOverride() — fiber Function Reference

Architecture documentation for the TestClientCBORUnmarshalOverride() function in client_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  410d68dd_9287_3d74_fa06_a7c981834139["TestClientCBORUnmarshalOverride()"]
  5d11d0f7_2b3b_7bf3_3b1d_76d79d6872a2["client_test.go"]
  410d68dd_9287_3d74_fa06_a7c981834139 -->|defined in| 5d11d0f7_2b3b_7bf3_3b1d_76d79d6872a2
  style 410d68dd_9287_3d74_fa06_a7c981834139 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

client/client_test.go lines 158–180

func TestClientCBORUnmarshalOverride(t *testing.T) {
	t.Parallel()

	client := New()
	initial := client.CBORUnmarshal()
	require.NotNil(t, initial)

	called := false
	custom := func(b []byte, v any) error {
		_ = b
		_ = v
		called = true
		return nil
	}

	client.SetCBORUnmarshal(custom)
	fn := client.CBORUnmarshal()
	require.NotNil(t, fn)

	var payload []byte
	require.NoError(t, fn(payload, nil))
	require.True(t, called)
}

Domain

Subdomains

Frequently Asked Questions

What does TestClientCBORUnmarshalOverride() do?
TestClientCBORUnmarshalOverride() is a function in the fiber codebase, defined in client/client_test.go.
Where is TestClientCBORUnmarshalOverride() defined?
TestClientCBORUnmarshalOverride() is defined in client/client_test.go at line 158.

Analyze Your Own Codebase

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

Try Supermodel Free