MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / TestNewMultiLocker_IgnoresEmptyKeys

Function TestNewMultiLocker_IgnoresEmptyKeys

internal/lock/lock_test.go:157–166  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

155}
156
157func TestNewMultiLocker_IgnoresEmptyKeys(t *testing.T) {
158 db, _ := redismock.NewClientMock()
159
160 // Empty key provided
161 multiLocker := NewMultiLocker(db, []string{"key-a", "", "key-b"}, "test-value")
162
163 // Empty keys should be ignored
164 keys := multiLocker.Keys()
165 assert.Equal(t, []string{"key-a", "key-b"}, keys)
166}
167
168func TestNewMultiLocker_SameSourceAndDestination(t *testing.T) {
169 db, _ := redismock.NewClientMock()

Callers

nothing calls this directly

Calls 2

KeysMethod · 0.95
NewMultiLockerFunction · 0.85

Tested by

no test coverage detected