Kelvin Clement Mwinuka
bb667cf7f7
Added test coverave + fixed some bugs with pubsub api methods.
2024-05-27 18:48:08 +08:00
Kelvin Clement Mwinuka
30b8b205a7
Implemented tests for api_acl.go file
2024-05-27 15:50:25 +08:00
Kelvin Clement Mwinuka
0108444d69
Replaced fmt.Println statements with log.Println.
...
Return "empty command" error from handleCommand method if an empty command is passed to the server.
Wait until connection is no longer nil in acl package tests.
2024-05-27 11:45:48 +08:00
Kelvin Clement Mwinuka
26a709a469
Added test case for command handler in modules test in api_admin
2024-05-09 02:24:01 +08:00
Kelvin Clement Mwinuka
df51142217
Implemented test for LoadModule, ListModules, and UnloadModule. Added check for existence of module file using os.Stat before attempting to open the file. Added build-module-tests step in makefile to simplify building modules for unit and race tests
2024-05-09 01:36:52 +08:00
Kelvin Clement Mwinuka
193871ec72
Removed test folder and moved all commands tests to their respective internal modules. Moved api tests into echovault package. This change has been made because the speratate test folder is not idiomatic and caused test coverage report to not be generated.
2024-05-04 17:45:10 +08:00