Commit Graph

554 Commits

Author SHA1 Message Date
Kelvin Clement Mwinuka
50e905b499 Implemented test for HDEL handler 2024-02-15 21:08:04 +08:00
Kelvin Clement Mwinuka
c39cb573a4 Implemented test for HEXISTS handler 2024-02-15 20:47:16 +08:00
Kelvin Clement Mwinuka
52529b55a2 Implemented test for HGETALL handler 2024-02-15 19:52:49 +08:00
Kelvin Clement Mwinuka
6cb99bd36e Implemented HLEN and HKEYS handler tests 2024-02-15 19:40:48 +08:00
Kelvin Clement Mwinuka
82b2cfc8da Added test for HVALS handler 2024-02-15 13:55:07 +08:00
Kelvin Clement Mwinuka
73e7b7eee6 Implemented test for HSTRLEN handler 2024-02-15 13:04:34 +08:00
Kelvin Clement Mwinuka
97a1789367 Implemented HGET test 2024-02-15 12:27:27 +08:00
Kelvin Clement Mwinuka
81dc6320be Code formatting 2024-02-15 00:11:06 +08:00
Kelvin Clement Mwinuka
42eaecd6b0 Renamed hash INCRBY handler function to HINCRBY to match the naming convention in the module. Created test for HINCRBY handler function 2024-02-15 00:10:28 +08:00
Kelvin Clement Mwinuka
6cb38ee51d Removed Plugin struct and it's receiver functions in all the modules 2024-02-14 21:38:57 +08:00
Kelvin Clement Mwinuka
7c0686986a Implemented test for HSET handler 2024-02-14 21:15:22 +08:00
Kelvin Clement Mwinuka
b1893c11bc Created hash module test file skeleton 2024-02-14 19:10:20 +08:00
Kelvin Clement Mwinuka
5bb7d19953 Added tests for handleSubStr handler 2024-02-14 18:49:35 +08:00
Kelvin Clement Mwinuka
c370833e33 Added tests for handleStrLen function 2024-02-14 16:16:17 +08:00
Kelvin Clement Mwinuka
42d9bf11a1 Updated handleSetRange logic and added some test cases. 2024-02-14 16:01:11 +08:00
Kelvin Clement Mwinuka
ff2d579102 Added '\r\n\r\n' delimiter to server.go error returned to the client 2024-02-14 15:59:17 +08:00
Kelvin Clement Mwinuka
323bb0bb15 Refactored tests to remove repeated logic 2024-02-14 12:30:02 +08:00
Kelvin Clement Mwinuka
71bbaeedf5 Renamed NewPlugin function to a Command that returns []utils.Command directly 2024-02-14 12:24:12 +08:00
Kelvin Clement Mwinuka
27d227766e Renamed NewPlugin function to a Command that returns []utils.Command directly 2024-02-14 12:23:29 +08:00
Kelvin Clement Mwinuka
117650b49c Renamed NewPlugin function to a Command that returns []utils.Command directly 2024-02-14 12:22:57 +08:00
Kelvin Clement Mwinuka
af22c1686f Renamed NewPlugin function to a Command that returns []utils.Command directly 2024-02-14 12:22:38 +08:00
Kelvin Clement Mwinuka
cf9ff72aca Renamed NewPlugin function to a Command that returns []utils.Command directly 2024-02-14 12:22:12 +08:00
Kelvin Clement Mwinuka
4a41dc17cd Renamed NewPlugin function to a Command that returns []utils.Command directly 2024-02-14 12:21:57 +08:00
Kelvin Clement Mwinuka
c849b3c44e Renamed NewPlugin function to a Command that returns []utils.Command directly 2024-02-14 12:21:40 +08:00
Kelvin Clement Mwinuka
2113a5bc31 Renamed NewPlugin function to a Command that returns []utils.Command directly 2024-02-14 12:21:08 +08:00
Kelvin Clement Mwinuka
a0432dfe3c Renamed NewPlugin function to a Command that returns []utils.Command directly 2024-02-14 12:20:50 +08:00
Kelvin Clement Mwinuka
1a0b2945da Renamed NewPlugin function to a Command that returns []utils.Command directly 2024-02-14 12:20:02 +08:00
Kelvin Clement Mwinuka
4a7753a46c Changed NewPlugin function to Command that returns []utils.Command directly 2024-02-14 12:16:30 +08:00
Kelvin Clement Mwinuka
d2e602e97a Deleted mock package as there's no longer a need to mock the server for tests. Tests can use the actual server instance 2024-02-14 12:09:43 +08:00
Kelvin Clement Mwinuka
e3b2edbf73 Call server NewServer contructor and pass config that includes commands, ACL and PubSub instances 2024-02-14 12:07:35 +08:00
Kelvin Clement Mwinuka
2ca24150d9 Remove LoadModules and LoadCommands methods from server/modules.go. The commands will be injected into the server from the caller through the NewServer constructor 2024-02-14 12:05:56 +08:00
Kelvin Clement Mwinuka
b1af2c907e Updated server.go file to remove import from acl and pubsub packages. Use ACL and PubSub interfaces instead. Created NewServer function that returns and instance on server 2024-02-14 12:03:08 +08:00
Kelvin Clement Mwinuka
aea3feec0e Created ACL and PubSub interface to allow indirection in Server struct definition 2024-02-14 11:59:28 +08:00
Kelvin Clement Mwinuka
53ade871ad Created ACL and PubSub interfaces to be used in Server struct definition to avoid future circular imports in acl and pubsub packages 2024-02-13 11:43:13 +08:00
Kelvin Clement Mwinuka
7356cf34f5 Created test file for string commands 2024-02-13 11:29:42 +08:00
Kelvin Clement Mwinuka
3db4a35f7b Added GPL v3 License 2024-02-13 00:26:33 +08:00
Kelvin Clement Mwinuka
1d5b0f6d12 Added separation between badges and banner in Readme.md 2024-02-12 22:42:02 +08:00
Kelvin Clement Mwinuka
ef5e429884 write-all permision to go.yml workflow 2024-02-12 22:39:15 +08:00
Kelvin Clement Mwinuka
71cf49317c Added write permission to go.yml workflow 2024-02-12 22:31:42 +08:00
Kelvin Clement Mwinuka
18f947c3a6 Updated coverage badge 2024-02-12 22:14:09 +08:00
Kelvin Clement Mwinuka
611eaadf2d Removed coverage file and output-dir config in coverage report workflow 2024-02-12 22:00:13 +08:00
Kelvin Clement Mwinuka
4bf3168f8a Updated coverage report config 2024-02-12 21:55:58 +08:00
Kelvin Clement Mwinuka
67697e0f18 Created coverage folder in .github directory 2024-02-12 21:54:05 +08:00
Kelvin Clement Mwinuka
4d1569d7a7 Removed /wiki in repo path on coverage badge 2024-02-12 21:50:45 +08:00
Kelvin Clement Mwinuka
c6b11b22b3 Added badge for coverage report 2024-02-12 21:47:28 +08:00
Kelvin Clement Mwinuka
cb896af677 Added go report card generation to project 2024-02-12 21:41:03 +08:00
Kelvin Clement Mwinuka
973127e27e Added go report badge. Removed center tags for banner image and changed img tag width to match image width 2024-02-12 21:37:39 +08:00
Kelvin Clement Mwinuka
e5729a484c Fixed typo in memberlist.go file in memberlist package 2024-02-12 21:31:31 +08:00
Kelvin Clement Mwinuka
fc6d81fa4a Created test file for string module 2024-02-12 21:20:22 +08:00
Kelvin Clement Mwinuka
c16aa7aa3a Compacted test cases for MGET into one array 2024-02-12 15:48:26 +08:00