Skip to content

Commit

Permalink
clean unused unit test properties
Browse files Browse the repository at this point in the history
  • Loading branch information
vazois committed Jul 8, 2024
1 parent 8795786 commit 5f93240
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions test/Garnet.test.cluster/RedirectTests/BaseCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public abstract class BaseCommand
{
public static ReadOnlySpan<byte> HashTag => "{1234}"u8;

public abstract bool IsReadOnly { get; }
public abstract bool IsArrayCommand { get; }
public abstract bool ArrayResponse { get; }
public virtual bool RequiresExistingKey => false;
Expand Down Expand Up @@ -105,7 +104,6 @@ public string[] GetCrossslotRequestWithCommand

public class DummyCommand : BaseCommand
{
public override bool IsReadOnly => true;
public override bool IsArrayCommand => false;
public override bool ArrayResponse => false;
public override string Command => commandName;
Expand All @@ -126,7 +124,6 @@ public DummyCommand(string commandName)
#region BasicCommands
internal class GET : BaseCommand
{
public override bool IsReadOnly => true;
public override bool IsArrayCommand => false;
public override bool ArrayResponse => false;
public override string Command => nameof(GET);
Expand All @@ -144,7 +141,6 @@ public override string[] GetSingleSlotRequest()

internal class SET : BaseCommand
{
public override bool IsReadOnly => false;
public override bool IsArrayCommand => false;
public override bool ArrayResponse => false;
public override string Command => nameof(SET);
Expand All @@ -162,7 +158,6 @@ public override string[] GetSingleSlotRequest()

internal class MGET : BaseCommand
{
public override bool IsReadOnly => true;
public override bool IsArrayCommand => true;
public override bool ArrayResponse => true;
public override string Command => nameof(MGET);
Expand All @@ -189,7 +184,6 @@ public override ArraySegment<string>[] SetupSingleSlotRequest()

internal class MSET : BaseCommand
{
public override bool IsReadOnly => false;
public override bool IsArrayCommand => true;
public override bool ArrayResponse => false;
public override string Command => nameof(MSET);
Expand All @@ -216,7 +210,6 @@ public override ArraySegment<string>[] SetupSingleSlotRequest()

internal class SETRANGE : BaseCommand
{
public override bool IsReadOnly => false;
public override bool IsArrayCommand => false;
public override bool ArrayResponse => false;
public override string Command => nameof(SETRANGE);
Expand All @@ -234,7 +227,6 @@ public override string[] GetSingleSlotRequest()

internal class GETRANGE : BaseCommand
{
public override bool IsReadOnly => true;
public override bool IsArrayCommand => false;
public override bool ArrayResponse => false;
public override string Command => nameof(GETRANGE);
Expand All @@ -252,7 +244,6 @@ public override string[] GetSingleSlotRequest()

internal class INCR : BaseCommand
{
public override bool IsReadOnly => false;
public override bool IsArrayCommand => false;
public override bool ArrayResponse => false;
public override string Command => nameof(INCR);
Expand All @@ -270,7 +261,6 @@ public override string[] GetSingleSlotRequest()

internal class APPEND : BaseCommand
{
public override bool IsReadOnly => false;
public override bool IsArrayCommand => false;
public override bool ArrayResponse => false;
public override string Command => nameof(APPEND);
Expand All @@ -288,7 +278,6 @@ public override string[] GetSingleSlotRequest()

internal class STRLEN : BaseCommand
{
public override bool IsReadOnly => true;
public override bool IsArrayCommand => false;
public override bool ArrayResponse => false;
public override string Command => nameof(STRLEN);
Expand All @@ -306,7 +295,6 @@ public override string[] GetSingleSlotRequest()

internal class RENAME : BaseCommand
{
public override bool IsReadOnly => false;
public override bool IsArrayCommand => true;
public override bool ArrayResponse => false;
public override bool RequiresExistingKey => true;
Expand Down Expand Up @@ -334,7 +322,6 @@ public override ArraySegment<string>[] SetupSingleSlotRequest()

internal class DEL : BaseCommand
{
public override bool IsReadOnly => false;
public override bool IsArrayCommand => true;
public override bool ArrayResponse => false;
public override string Command => nameof(DEL);
Expand All @@ -361,7 +348,6 @@ public override ArraySegment<string>[] SetupSingleSlotRequest()

internal class GETDEL : BaseCommand
{
public override bool IsReadOnly => false;
public override bool IsArrayCommand => false;
public override bool ArrayResponse => false;
public override string Command => nameof(GETDEL);
Expand All @@ -379,7 +365,6 @@ public override string[] GetSingleSlotRequest()

internal class EXISTS : BaseCommand
{
public override bool IsReadOnly => true;
public override bool IsArrayCommand => true;
public override bool ArrayResponse => false;
public override string Command => nameof(EXISTS);
Expand All @@ -406,7 +391,6 @@ public override ArraySegment<string>[] SetupSingleSlotRequest()

internal class PERSIST : BaseCommand
{
public override bool IsReadOnly => false;
public override bool IsArrayCommand => false;
public override bool ArrayResponse => false;
public override string Command => nameof(PERSIST);
Expand All @@ -424,7 +408,6 @@ public override string[] GetSingleSlotRequest()

internal class EXPIRE : BaseCommand
{
public override bool IsReadOnly => false;
public override bool IsArrayCommand => false;
public override bool ArrayResponse => false;
public override string Command => nameof(EXPIRE);
Expand All @@ -442,7 +425,6 @@ public override string[] GetSingleSlotRequest()

internal class TTL : BaseCommand
{
public override bool IsReadOnly => false;
public override bool IsArrayCommand => false;
public override bool ArrayResponse => false;
public override string Command => nameof(TTL);
Expand All @@ -462,7 +444,6 @@ public override string[] GetSingleSlotRequest()
#region BitmapCommands
internal class GETBIT : BaseCommand
{
public override bool IsReadOnly => true;
public override bool IsArrayCommand => false;
public override bool ArrayResponse => false;
public override string Command => nameof(GETBIT);
Expand All @@ -480,7 +461,6 @@ public override string[] GetSingleSlotRequest()

internal class SETBIT : BaseCommand
{
public override bool IsReadOnly => false;
public override bool IsArrayCommand => false;
public override bool ArrayResponse => false;
public override string Command => nameof(SETBIT);
Expand All @@ -498,7 +478,6 @@ public override string[] GetSingleSlotRequest()

internal class BITCOUNT : BaseCommand
{
public override bool IsReadOnly => true;
public override bool IsArrayCommand => false;
public override bool ArrayResponse => false;
public override string Command => nameof(BITCOUNT);
Expand All @@ -516,7 +495,6 @@ public override string[] GetSingleSlotRequest()

internal class BITPOS : BaseCommand
{
public override bool IsReadOnly => true;
public override bool IsArrayCommand => false;
public override bool ArrayResponse => false;
public override string Command => nameof(BITPOS);
Expand All @@ -534,7 +512,6 @@ public override string[] GetSingleSlotRequest()

internal class BITOP : BaseCommand
{
public override bool IsReadOnly => false;
public override bool IsArrayCommand => true;
public override bool ArrayResponse => false;
public override string Command => nameof(BITOP);
Expand Down Expand Up @@ -564,7 +541,6 @@ public override ArraySegment<string>[] SetupSingleSlotRequest()

internal class BITFIELD : BaseCommand
{
public override bool IsReadOnly => false;
public override bool IsArrayCommand => false;
public override bool ArrayResponse => true;
public override string Command => nameof(BITFIELD);
Expand All @@ -582,7 +558,6 @@ public override string[] GetSingleSlotRequest()

internal class BITFIELD_RO : BaseCommand
{
public override bool IsReadOnly => false;
public override bool IsArrayCommand => false;
public override bool ArrayResponse => true;
public override string Command => nameof(BITFIELD_RO);
Expand All @@ -604,7 +579,6 @@ public override string[] GetSingleSlotRequest()

internal class PFADD : BaseCommand
{
public override bool IsReadOnly => false;
public override bool IsArrayCommand => false;
public override bool ArrayResponse => false;
public override string Command => nameof(PFADD);
Expand All @@ -622,7 +596,6 @@ public override string[] GetSingleSlotRequest()

internal class PFCOUNT : BaseCommand
{
public override bool IsReadOnly => false;
public override bool IsArrayCommand => true;
public override bool ArrayResponse => false;
public override string Command => nameof(PFCOUNT);
Expand Down Expand Up @@ -652,7 +625,6 @@ public override ArraySegment<string>[] SetupSingleSlotRequest()

internal class PFMERGE : BaseCommand
{
public override bool IsReadOnly => false;
public override bool IsArrayCommand => true;
public override bool ArrayResponse => false;
public override string Command => nameof(PFMERGE);
Expand Down Expand Up @@ -685,7 +657,6 @@ public override ArraySegment<string>[] SetupSingleSlotRequest()
#region SetCommands
internal class SDIFFSTORE : BaseCommand
{
public override bool IsReadOnly => false;
public override bool IsArrayCommand => true;
public override bool ArrayResponse => false;
public override string Command => nameof(SDIFFSTORE);
Expand Down Expand Up @@ -715,7 +686,6 @@ public override ArraySegment<string>[] SetupSingleSlotRequest()

internal class SDIFF : BaseCommand
{
public override bool IsReadOnly => true;
public override bool IsArrayCommand => true;
public override bool ArrayResponse => true;
public override string Command => nameof(SDIFF);
Expand Down Expand Up @@ -745,7 +715,6 @@ public override ArraySegment<string>[] SetupSingleSlotRequest()

internal class SMOVE : BaseCommand
{
public override bool IsReadOnly => false;
public override bool IsArrayCommand => true;
public override bool ArrayResponse => false;
public override string Command => nameof(SMOVE);
Expand Down Expand Up @@ -775,7 +744,6 @@ public override ArraySegment<string>[] SetupSingleSlotRequest()

internal class SUNIONSTORE : BaseCommand
{
public override bool IsReadOnly => false;
public override bool IsArrayCommand => true;
public override bool ArrayResponse => false;
public override string Command => nameof(SUNIONSTORE);
Expand Down Expand Up @@ -805,7 +773,6 @@ public override ArraySegment<string>[] SetupSingleSlotRequest()

internal class SUNION : BaseCommand
{
public override bool IsReadOnly => true;
public override bool IsArrayCommand => true;
public override bool ArrayResponse => true;
public override string Command => nameof(SUNION);
Expand Down Expand Up @@ -835,7 +802,6 @@ public override ArraySegment<string>[] SetupSingleSlotRequest()

internal class SINTERSTORE : BaseCommand
{
public override bool IsReadOnly => false;
public override bool IsArrayCommand => true;
public override bool ArrayResponse => false;
public override string Command => nameof(SINTERSTORE);
Expand Down Expand Up @@ -865,7 +831,6 @@ public override ArraySegment<string>[] SetupSingleSlotRequest()

internal class SINTER : BaseCommand
{
public override bool IsReadOnly => true;
public override bool IsArrayCommand => true;
public override bool ArrayResponse => true;
public override string Command => nameof(SINTER);
Expand Down Expand Up @@ -897,7 +862,6 @@ public override ArraySegment<string>[] SetupSingleSlotRequest()
#region ListCommands
internal class LMOVE : BaseCommand
{
public override bool IsReadOnly => false;
public override bool IsArrayCommand => true;
public override bool ArrayResponse => false;
public override string Command => nameof(LMOVE);
Expand Down

0 comments on commit 5f93240

Please sign in to comment.