Commit Graph

554 Commits

Author SHA1 Message Date
Kelvin Clement Mwinuka
ca380419bb Extracted key function in sorted_set module 2024-02-19 01:58:26 +08:00
Kelvin Clement Mwinuka
d3802a3778 Extracted key functions from set module 2024-02-19 01:31:54 +08:00
Kelvin Clement Mwinuka
0306c4fb39 Extracted key functions in list module 2024-02-19 00:45:21 +08:00
Kelvin Clement Mwinuka
ff8de0fbe8 Extracted key functions in hash module 2024-02-19 00:18:34 +08:00
Kelvin Clement Mwinuka
888908db27 Extracted KeyFuncs in etc module 2024-02-18 23:52:33 +08:00
Kelvin Clement Mwinuka
d456ce1f99 Created key extraction functions to be used in command slice and command handlers 2024-02-18 23:35:53 +08:00
Kelvin Clement Mwinuka
c54619d045 string command handlers now use their corresponding key funcs instead of manually extracting keys in the handler 2024-02-18 23:22:17 +08:00
Kelvin Clement Mwinuka
c4977354a3 Created key_funcs file for strings module to hold key extraction functions 2024-02-18 23:17:22 +08:00
Kelvin Clement Mwinuka
a84d1b4d31 Created test skeleton for sorted set test suite 2024-02-18 22:56:10 +08:00
Kelvin Clement Mwinuka
69d558e37c Edited makefile test command to include code coverate stats 2024-02-18 02:52:35 +08:00
Kelvin Clement Mwinuka
671a1ce2db Added test for allowing/disallowing repeated elements when getting random elements from the set 2024-02-18 02:44:00 +08:00
Kelvin Clement Mwinuka
128fa1a62e Implemented change on Union function from receiver function to a regular function that uses divide and conquer to merge sets into a union 2024-02-18 02:10:51 +08:00
Kelvin Clement Mwinuka
c809d7b52b Created test case for SUNIONSTORE command handler 2024-02-18 02:00:00 +08:00
Kelvin Clement Mwinuka
55b24729e9 Implemented test for SUNION command handler 2024-02-18 01:44:11 +08:00
Kelvin Clement Mwinuka
a8bee4be8f Implemented unit test for SREM command handler 2024-02-18 01:34:45 +08:00
Kelvin Clement Mwinuka
fa27a06a01 Implemented test case for SRANDMEMBER command handler 2024-02-18 00:55:06 +08:00
Kelvin Clement Mwinuka
4d4842f598 Made test case for SPOP command handler 2024-02-18 00:48:37 +08:00
Kelvin Clement Mwinuka
55ee37af64 Created test case for SMOVE command handler 2024-02-18 00:16:01 +08:00
Kelvin Clement Mwinuka
b158973c6f Created a test case for SMEMBERS command handler 2024-02-17 23:35:26 +08:00
Kelvin Clement Mwinuka
b89f43680c Created test case for SMISMEMBER command handler 2024-02-17 23:21:00 +08:00
Kelvin Clement Mwinuka
486fbb7b6c Implemented test for SISMEMBER handler function 2024-02-17 23:05:06 +08:00
Kelvin Clement Mwinuka
59a913b921 Removed unused code in SINTERSTORE command handler 2024-02-17 22:56:19 +08:00
Kelvin Clement Mwinuka
323c6caef1 Reorganised functions in set.go 2024-02-17 22:53:26 +08:00
Kelvin Clement Mwinuka
e0f6ca884f Added comment to explain the function of the Subtract receiver function of Set 2024-02-17 22:52:50 +08:00
Kelvin Clement Mwinuka
93bd7c9cae Implemented test for SINTERCARD command handler. Added logic to terminate the intersect calculation percisely when limit is reached rather than estimating 2024-02-17 22:50:51 +08:00
Kelvin Clement Mwinuka
36a64df851 Implemented test for SINTERSTORE command handler 2024-02-17 22:21:37 +08:00
Kelvin Clement Mwinuka
01347229fc Re-endabled SINTERCARD command 2024-02-17 22:07:42 +08:00
Kelvin Clement Mwinuka
41efc1e116 Updated Intersection function from a receiver function to a standalone function that accepts a limit integer and a list of sets as a variadic param. The function now uses a divide and conquer approch to calculate the intersection of multiple sets.
Implemented test for SINTER handler.
2024-02-17 22:04:39 +08:00
Kelvin Clement Mwinuka
4535434d95 Updated SDIFFSTORE to match logic in SDIFF and implemented test for SDIFFSTORE 2024-02-17 20:30:58 +08:00
Kelvin Clement Mwinuka
390e9274a5 Updated description for sdiff command 2024-02-17 19:31:41 +08:00
Kelvin Clement Mwinuka
532c4008d1 Fixed logical bug with SDIFF command where the base set would be randomised among the list of keys provided. Now, only the first key provided will always be used as the base set for the difference calculation. Implemented test for SDIFF command 2024-02-17 19:28:55 +08:00
Kelvin Clement Mwinuka
accd8a4728 Implemented tests for SCARD command handler 2024-02-17 18:21:12 +08:00
Kelvin Clement Mwinuka
8077993b25 Created test for SADD command handler 2024-02-17 16:01:17 +08:00
Kelvin Clement Mwinuka
51e88c3559 Created test file for sorted_set commands 2024-02-17 01:54:12 +08:00
Kelvin Clement Mwinuka
2a5e85612b Created test skeleton for set type 2024-02-17 01:51:17 +08:00
Kelvin Clement Mwinuka
2ab8e092be Added test for LMOVE handler 2024-02-17 01:37:08 +08:00
Kelvin Clement Mwinuka
2282c32973 Implemented test for LPOP and RPOP handler 2024-02-17 00:24:40 +08:00
Kelvin Clement Mwinuka
92d824b6d0 Implemented test for RPUSH command handler 2024-02-17 00:06:29 +08:00
Kelvin Clement Mwinuka
a1250a7837 Implemented test for LPUSH command handler 2024-02-17 00:00:07 +08:00
Kelvin Clement Mwinuka
c8209e16ea Implemented test for LREM command 2024-02-16 23:31:04 +08:00
Kelvin Clement Mwinuka
b990755737 Implemented test for LRANGE handler 2024-02-16 22:43:47 +08:00
Kelvin Clement Mwinuka
ee0c7aa9cc Created test for LTRIM command handler 2024-02-16 21:54:56 +08:00
Kelvin Clement Mwinuka
fc5e992694 Implemented tests for LSET handler 2024-02-16 21:09:21 +08:00
Kelvin Clement Mwinuka
17ab92fb00 Implemented LINDEX handler test 2024-02-16 20:43:53 +08:00
Kelvin Clement Mwinuka
eef1cd1927 Created skeleton tests for all the handlers in the list module 2024-02-16 20:16:21 +08:00
Kelvin Clement Mwinuka
93bca796fe Created test for LLEN handler 2024-02-16 20:04:53 +08:00
Kelvin Clement Mwinuka
7f8ff5a2fe Created test file for list commands 2024-02-16 01:45:20 +08:00
Kelvin Clement Mwinuka
d7fd5b4d4d Added test for HRANDFIELD handler 2024-02-16 00:25:56 +08:00
Kelvin Clement Mwinuka
93a199260a Fixed flaky HVALS test 2024-02-15 23:56:42 +08:00
Kelvin Clement Mwinuka
5fea54fa94 Fixed HGETALL flaky test 2024-02-15 23:35:34 +08:00