LiveMap API
Loading...
Searching...
No Matches
LiveMap.Tests.LRUCacheTest Class Reference

Public Member Functions

void Constructor_WithValidCapacity_ShouldCreateCache ()
void Constructor_WithZeroCapacity_ShouldThrow ()
void Constructor_WithNegativeCapacity_ShouldThrow ()
void Add_SingleItem_ShouldIncreaseCount ()
void TryGet_ExistingKey_ShouldReturnTrueAndValue ()
void TryGet_NonExistingKey_ShouldReturnFalseAndDefault ()
void TryGet_WithNullableValue_NonExistingKey_ShouldReturnNull ()
void Add_ExistingKey_ShouldUpdateValue ()
void Add_ExceedingCapacity_ShouldEvictLeastRecentlyUsed ()
void TryGet_UpdatesLRUOrder ()
void Add_UpdateExisting_ShouldUpdateLRUOrder ()
void Remove_ExistingKey_ShouldReturnTrueAndDecreaseCount ()
void Remove_NonExistingKey_ShouldReturnFalse ()
void Clear_ShouldRemoveAllItems ()
void Clear_EmptyCache_ShouldNotThrow ()
async Task ConcurrentAdd_ShouldHandleThreadSafely ()
async Task ConcurrentReadWrite_ShouldHandleThreadSafely ()
async Task ConcurrentEviction_ShouldNotThrow ()
async Task ConcurrentMixedOperations_ShouldMaintainConsistency ()
async Task StressTest_RapidEvictions_ShouldMaintainIntegrity ()
void CapacityOne_ShouldWorkCorrectly ()
void IntKeys_ShouldWorkCorrectly ()
void NullValues_ShouldBeAllowed ()

Member Function Documentation

◆ Add_ExceedingCapacity_ShouldEvictLeastRecentlyUsed()

void LiveMap.Tests.LRUCacheTest.Add_ExceedingCapacity_ShouldEvictLeastRecentlyUsed ( )
inline

◆ Add_ExistingKey_ShouldUpdateValue()

void LiveMap.Tests.LRUCacheTest.Add_ExistingKey_ShouldUpdateValue ( )
inline

◆ Add_SingleItem_ShouldIncreaseCount()

void LiveMap.Tests.LRUCacheTest.Add_SingleItem_ShouldIncreaseCount ( )
inline

◆ Add_UpdateExisting_ShouldUpdateLRUOrder()

void LiveMap.Tests.LRUCacheTest.Add_UpdateExisting_ShouldUpdateLRUOrder ( )
inline

◆ CapacityOne_ShouldWorkCorrectly()

void LiveMap.Tests.LRUCacheTest.CapacityOne_ShouldWorkCorrectly ( )
inline

◆ Clear_EmptyCache_ShouldNotThrow()

void LiveMap.Tests.LRUCacheTest.Clear_EmptyCache_ShouldNotThrow ( )
inline

◆ Clear_ShouldRemoveAllItems()

void LiveMap.Tests.LRUCacheTest.Clear_ShouldRemoveAllItems ( )
inline

◆ ConcurrentAdd_ShouldHandleThreadSafely()

async Task LiveMap.Tests.LRUCacheTest.ConcurrentAdd_ShouldHandleThreadSafely ( )
inline

◆ ConcurrentEviction_ShouldNotThrow()

async Task LiveMap.Tests.LRUCacheTest.ConcurrentEviction_ShouldNotThrow ( )
inline

◆ ConcurrentMixedOperations_ShouldMaintainConsistency()

async Task LiveMap.Tests.LRUCacheTest.ConcurrentMixedOperations_ShouldMaintainConsistency ( )
inline

◆ ConcurrentReadWrite_ShouldHandleThreadSafely()

async Task LiveMap.Tests.LRUCacheTest.ConcurrentReadWrite_ShouldHandleThreadSafely ( )
inline

◆ Constructor_WithNegativeCapacity_ShouldThrow()

void LiveMap.Tests.LRUCacheTest.Constructor_WithNegativeCapacity_ShouldThrow ( )
inline

◆ Constructor_WithValidCapacity_ShouldCreateCache()

void LiveMap.Tests.LRUCacheTest.Constructor_WithValidCapacity_ShouldCreateCache ( )
inline

◆ Constructor_WithZeroCapacity_ShouldThrow()

void LiveMap.Tests.LRUCacheTest.Constructor_WithZeroCapacity_ShouldThrow ( )
inline

◆ IntKeys_ShouldWorkCorrectly()

void LiveMap.Tests.LRUCacheTest.IntKeys_ShouldWorkCorrectly ( )
inline

◆ NullValues_ShouldBeAllowed()

void LiveMap.Tests.LRUCacheTest.NullValues_ShouldBeAllowed ( )
inline

◆ Remove_ExistingKey_ShouldReturnTrueAndDecreaseCount()

void LiveMap.Tests.LRUCacheTest.Remove_ExistingKey_ShouldReturnTrueAndDecreaseCount ( )
inline

◆ Remove_NonExistingKey_ShouldReturnFalse()

void LiveMap.Tests.LRUCacheTest.Remove_NonExistingKey_ShouldReturnFalse ( )
inline

◆ StressTest_RapidEvictions_ShouldMaintainIntegrity()

async Task LiveMap.Tests.LRUCacheTest.StressTest_RapidEvictions_ShouldMaintainIntegrity ( )
inline

◆ TryGet_ExistingKey_ShouldReturnTrueAndValue()

void LiveMap.Tests.LRUCacheTest.TryGet_ExistingKey_ShouldReturnTrueAndValue ( )
inline

◆ TryGet_NonExistingKey_ShouldReturnFalseAndDefault()

void LiveMap.Tests.LRUCacheTest.TryGet_NonExistingKey_ShouldReturnFalseAndDefault ( )
inline

◆ TryGet_UpdatesLRUOrder()

void LiveMap.Tests.LRUCacheTest.TryGet_UpdatesLRUOrder ( )
inline

◆ TryGet_WithNullableValue_NonExistingKey_ShouldReturnNull()

void LiveMap.Tests.LRUCacheTest.TryGet_WithNullableValue_NonExistingKey_ShouldReturnNull ( )
inline

The documentation for this class was generated from the following file: