Home / Function/ TestStore_Delete() — fiber Function Reference

TestStore_Delete() — fiber Function Reference

Architecture documentation for the TestStore_Delete() function in store_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  628be528_91d9_5e32_c44c_e901f9be2f24["TestStore_Delete()"]
  9bbf348a_f496_e909_6f62_6ea1938bfec4["store_test.go"]
  628be528_91d9_5e32_c44c_e901f9be2f24 -->|defined in| 9bbf348a_f496_e909_6f62_6ea1938bfec4
  style 628be528_91d9_5e32_c44c_e901f9be2f24 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

middleware/session/store_test.go lines 150–164

func TestStore_Delete(t *testing.T) {
	// Create a new store
	store := NewStore()

	t.Run("delete with empty session ID", func(t *testing.T) {
		err := store.Delete(context.Background(), "")
		require.Error(t, err)
		require.Equal(t, ErrEmptySessionID, err)
	})

	t.Run("delete non-existing session", func(t *testing.T) {
		err := store.Delete(context.Background(), "non-existing-session-id")
		require.NoError(t, err)
	})
}

Subdomains

Frequently Asked Questions

What does TestStore_Delete() do?
TestStore_Delete() is a function in the fiber codebase, defined in middleware/session/store_test.go.
Where is TestStore_Delete() defined?
TestStore_Delete() is defined in middleware/session/store_test.go at line 150.

Analyze Your Own Codebase

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

Try Supermodel Free