-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle FT.PROFILE response (impacted with Coordinator) processing wit…
…h "ProfilingInformation" (#373) * handle ft.profile response processing with "ProfilingInformation" * fix formatting * make old methods obsolete
- Loading branch information
Showing
8 changed files
with
272 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using StackExchange.Redis; | ||
|
||
namespace NRedisStack.Search | ||
{ | ||
|
||
public class ProfilingInformation | ||
{ | ||
public RedisResult Info { get; private set; } | ||
public ProfilingInformation(RedisResult info) | ||
{ | ||
this.Info = info; | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Xunit; | ||
|
||
namespace NRedisStack.Tests; | ||
|
||
public static class CustomAssertions | ||
{ | ||
// Generic method to assert that 'actual' is greater than 'expected' | ||
public static void GreaterThan<T>(T actual, T expected) where T : IComparable<T> | ||
{ | ||
Assert.True(actual.CompareTo(expected) > 0, | ||
$"Failure: Expected value to be greater than {expected}, but found {actual}."); | ||
} | ||
|
||
// Generic method to assert that 'actual' is less than 'expected' | ||
public static void LessThan<T>(T actual, T expected) where T : IComparable<T> | ||
{ | ||
Assert.True(actual.CompareTo(expected) < 0, | ||
$"Failure: Expected value to be less than {expected}, but found {actual}."); | ||
} | ||
} |
Oops, something went wrong.