From c53d63e612e6674f6666ca3f960cf770aee8d2cd Mon Sep 17 00:00:00 2001 From: Memoyu Date: Wed, 20 Sep 2023 10:25:08 +0800 Subject: [PATCH] fix: CI error --- .../FasterKvCachingProviderTest.cs | 35 +++++++++++++++++++ .../CachingTests/MemcachedProviderTest.cs | 11 ++++++ 2 files changed, 46 insertions(+) diff --git a/test/EasyCaching.UnitTests/CachingTests/FasterKvCachingProviderTest.cs b/test/EasyCaching.UnitTests/CachingTests/FasterKvCachingProviderTest.cs index f344a5d7..6543931b 100644 --- a/test/EasyCaching.UnitTests/CachingTests/FasterKvCachingProviderTest.cs +++ b/test/EasyCaching.UnitTests/CachingTests/FasterKvCachingProviderTest.cs @@ -76,16 +76,49 @@ protected override void Get_Parallel_Should_Succeed() { } + public override Task GetAllByPrefix_Async_Should_Throw_ArgumentNullException_When_Prefix_IsNullOrWhiteSpace( + string preifx) + { + return Task.CompletedTask; + } + + public override void GetAllByPrefix_Should_Throw_ArgumentNullException_When_CacheKey_IsNullOrWhiteSpace( + string prefix) + { + } + protected override Task Get_Count_Async_With_Prefix_Should_Succeed() { return Task.CompletedTask; } + public override void RemoveByPattern_Should_Succeed() + { + } + + public override Task RemoveByPatternAsync_Should_Succeed() + { + return Task.CompletedTask; + } + + public override Task RemoveByPrefix_Async_Should_Throw_ArgumentNullException_When_Prefix_IsNullOrWhiteSpace( + string preifx) + + { + return Task.CompletedTask; + } + + public override void RemoveByPrefix_Should_Throw_ArgumentNullException_When_CacheKey_IsNullOrWhiteSpace( + string prefix) + { + } + protected override Task Get_Count_Async_Without_Prefix_Should_Succeed() { return Task.CompletedTask; } + protected override void Get_Count_With_Prefix_Should_Succeed() { } @@ -107,6 +140,8 @@ protected override Task GetByPrefixAsync_Should_Succeed() return Task.CompletedTask; } + + protected override Task GetByPrefixAsync_With_Not_Existed_Prefix_Should_Return_Empty_Dict() { return Task.CompletedTask; diff --git a/test/EasyCaching.UnitTests/CachingTests/MemcachedProviderTest.cs b/test/EasyCaching.UnitTests/CachingTests/MemcachedProviderTest.cs index 74ab4ee3..0d5cf30a 100644 --- a/test/EasyCaching.UnitTests/CachingTests/MemcachedProviderTest.cs +++ b/test/EasyCaching.UnitTests/CachingTests/MemcachedProviderTest.cs @@ -115,6 +115,17 @@ protected override void GetByPrefix_Should_Succeed() { } + [Fact] + public override void RemoveByPattern_Should_Succeed() + { + } + + [Fact] + public override async Task RemoveByPatternAsync_Should_Succeed() + { + await Task.FromResult(1); + } + [Fact] protected override async Task GetByPrefixAsync_Should_Succeed() {