summaryrefslogtreecommitdiff
path: root/test.c
AgeCommit message (Collapse)Author
2010-12-02Add (nearly) full printf support by delegating to vsprintfPieter Noordhuis
2010-11-24Set error on unexpected nesting of multi bulksPieter Noordhuis
2010-11-22Make error messages consistent in casingPieter Noordhuis
2010-11-22Tests for behavior when connecting failsPieter Noordhuis
2010-11-22Make test for formatting commands using a vector more robustPieter Noordhuis
2010-11-22Fix formatting literal percent charactersPieter Noordhuis
2010-11-22Correctly format commands with empty interpolated valuesPieter Noordhuis
2010-11-19Don't do a write(2) after QUITPieter Noordhuis
This causes non-deterministic error messages because sometimes the socket will already be closed and sometimes it is yet to be closed.
2010-11-15Don't print when testing can continuePieter Noordhuis
2010-11-15Redis >=2.1 replies with OK on QUIT, so make the test conditionalPieter Noordhuis
2010-11-05Include signal.hPieter Noordhuis
2010-11-04Finding \r\n without strstr is a little harderPieter Noordhuis
2010-11-04Return the reply type when the reply object function set is NULLPieter Noordhuis
2010-11-03Check replies in throughput testPieter Noordhuis
2010-11-03Allow to connect using a unix socket from hiredisPieter Noordhuis
2010-11-02Change error reporting to have an explicit typePieter Noordhuis
When there is an I/O error, errno should be used to find out what is wrong. In other cases, errno cannot be used. So, use an explicit type in Hiredis to define the different error scenarios that can occur.
2010-10-31Remove reply object functions from connect functionsPieter Noordhuis
2010-10-31First step in decoupling reply callbacks from internalsPieter Noordhuis
2010-10-31Format a command using an argument vectorPieter Noordhuis
2010-10-30Status replies should have type REDIS_REPLY_STATUSPieter Noordhuis
2010-10-30Drop dependency on sds.h for exposed APIPieter Noordhuis
2010-10-19Run pending callbacks with NULL reply on redisDisconnect()Pieter Noordhuis
2010-10-19Test helper for creating a non-blocking connectionPieter Noordhuis
2010-10-19Revert e5dd32d8 that added the const qualifier for command callbacksPieter Noordhuis
2010-10-19Revert privdata in context callbacks to being non-constPieter Noordhuis
2010-10-18Test callback sequence in non-blocking contextPieter Noordhuis
2010-10-18Change redisWriteBuffer to return OK on an empty bufferPieter Noordhuis
2010-10-18Tests for context callbacks in non-blocking modePieter Noordhuis
2010-10-18Rearrange tests to isolated functionsPieter Noordhuis
2010-10-18The QUIT commands returns OK on masterPieter Noordhuis
2010-10-06Make error messages more consistent (e.g. no newline)Pieter Noordhuis
2010-10-06c->error is no longer a redisReply object, but rather a plain C-stringPieter Noordhuis
2010-09-25Free the replies after the tests are donePieter Noordhuis
2010-09-25Add function to free an allocated contextPieter Noordhuis
2010-09-25Deprecate the error object for I/O and protocol errorsPieter Noordhuis
Rather, use the return value REDIS_OK and REDIS_ERR to designate if calling a function has a successful outcome. When there was an error in performing the call the error field will be set inside the reader or the context.
2010-09-24Rename fd to the more appropriate cPieter Noordhuis
2010-09-24Use context variable to keep state for a connectionPieter Noordhuis
The context supports both blocking and non-blocking connections. All read and write events are not handled by hiredis, but hiredis exposes an API for buffered reading/writing to Redis.
2010-09-21Rename functions to be more consistent, split feed from get replyPieter Noordhuis
2010-09-20Use a set of function pointers for building the replyPieter Noordhuis
Allows libraries to wrap the reply parsing code and build the reply in a streaming fashion. Reply objects can immediately be initialized to the required type without having to convert an intermediary format.
2010-09-20Add reply type for protocol errors, in order to never exit()Pieter Noordhuis
2010-09-20Use automatic numbering in testsPieter Noordhuis
2010-09-19Free reply in test.c to make hiredis-test run cleanly on ValgrindPieter Noordhuis
2010-09-19Change function prototypePieter Noordhuis
2010-09-19Clean up when there is an I/O errorPieter Noordhuis
2010-09-19Rewrite reply parsing to use a read bufferPieter Noordhuis
2010-09-19Add speed testsPieter Noordhuis
2010-05-25strcasecmp requires strings.hPierre Riteau
2010-05-18minimalistic test suite...antirez