All files / src/resp/command/server ping-command.ts

87.5% Statements 7/8
100% Branches 0/0
50% Functions 1/2
87.5% Lines 7/8

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18  1x 1x   1x 4x   4x   4x   1x            
import { IRequest } from "../../../server/request";
import { RedisToken } from "../../protocol/redis-token";
import { IRespCommand } from "../resp-command";
 
export class PingCommand extends IRespCommand {
  public maxParams = 0
 
  public minParams = 0
 
  public name = "ping"
 
  public static PONG: string = "PONG";
 
  public execSync(request: IRequest): RedisToken {
      return RedisToken.string(PingCommand.PONG);
  }
}