(t *testing.T)
| 155 | } |
| 156 | |
| 157 | func 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 | |
| 168 | func TestNewMultiLocker_SameSourceAndDestination(t *testing.T) { |
| 169 | db, _ := redismock.NewClientMock() |
nothing calls this directly
no test coverage detected