Test_Storage_Memory_SetWithContext() — fiber Function Reference
Architecture documentation for the Test_Storage_Memory_SetWithContext() function in memory_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD faf4ca17_208a_d905_f4fc_13d7f4cb4f20["Test_Storage_Memory_SetWithContext()"] 5fc515d5_e762_b957_5588_68b2d14010d3["memory_test.go"] faf4ca17_208a_d905_f4fc_13d7f4cb4f20 -->|defined in| 5fc515d5_e762_b957_5588_68b2d14010d3 style faf4ca17_208a_d905_f4fc_13d7f4cb4f20 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
internal/storage/memory/memory_test.go lines 27–44
func Test_Storage_Memory_SetWithContext(t *testing.T) {
t.Parallel()
var (
testStore = New()
key = "john"
val = []byte("doe")
)
ctx, cancel := context.WithCancel(context.Background())
cancel()
err := testStore.SetWithContext(ctx, key, val, 0)
require.ErrorIs(t, err, context.Canceled)
keys, err := testStore.Keys()
require.NoError(t, err)
require.Nil(t, keys)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_Storage_Memory_SetWithContext() do?
Test_Storage_Memory_SetWithContext() is a function in the fiber codebase, defined in internal/storage/memory/memory_test.go.
Where is Test_Storage_Memory_SetWithContext() defined?
Test_Storage_Memory_SetWithContext() is defined in internal/storage/memory/memory_test.go at line 27.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free