mirror of
https://github.com/redis/RedisDesktopManager.git
synced 2026-10-21 06:35:48 +08:00
8ce22d4909
- Move response processing code to Response class - Move command processing code to Command class
20 lines
316 B
C++
20 lines
316 B
C++
#include "test_command.h"
|
|
#include "Command.h"
|
|
|
|
#include <QTest>
|
|
|
|
void TestCommand::prepareCommand()
|
|
{
|
|
//given
|
|
//Command class
|
|
|
|
//when
|
|
QVariant actualResult = Command::getFormatted("EXISTS testkey:test");
|
|
|
|
//then
|
|
QCOMPARE(actualResult, QVariant("*2\r\n$6\r\nEXISTS\r\n$12\r\ntestkey:test\r\n"));
|
|
}
|
|
|
|
|
|
|