mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 18:42:41 +01:00
66 lines
1011 B
C++
66 lines
1011 B
C++
//
|
|
// RedisTest.h
|
|
//
|
|
// $Id$
|
|
//
|
|
// Definition of the RedisTest class.
|
|
//
|
|
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#ifndef RedisTest_INCLUDED
|
|
#define RedisTest_INCLUDED
|
|
|
|
|
|
#include "Poco/Redis/Redis.h"
|
|
#include "Poco/Redis/AsyncClient.h"
|
|
|
|
#include "CppUnit/TestCase.h"
|
|
|
|
|
|
class RedisTest: public CppUnit::TestCase
|
|
{
|
|
public:
|
|
RedisTest(const std::string& name);
|
|
|
|
|
|
virtual ~RedisTest();
|
|
|
|
void testAppend();
|
|
void testEcho();
|
|
void testIncr();
|
|
void testIncrBy();
|
|
void testPing();
|
|
void testSet();
|
|
void testMSet();
|
|
void testStrlen();
|
|
void testRPush();
|
|
void testLIndex();
|
|
void testMulti();
|
|
|
|
void testPubSub();
|
|
|
|
void testPipeliningWithSendCommands();
|
|
void testPipeliningWithWriteCommand();
|
|
|
|
void setUp();
|
|
void tearDown();
|
|
|
|
static CppUnit::Test* suite();
|
|
|
|
private:
|
|
|
|
std::string _host;
|
|
unsigned _port;
|
|
static bool _connected;
|
|
static Poco::Redis::AsyncClient _redis;
|
|
|
|
};
|
|
|
|
|
|
#endif // RedisTest_INCLUDED
|