Created writer mock.

Created mock server.
Added test for ping command plugin.
This commit is contained in:
Kelvin Clement Mwinuka
2023-07-13 18:37:53 +08:00
parent 91e1ba5555
commit b5cadf43a7
3 changed files with 86 additions and 2 deletions

View File

@@ -39,8 +39,8 @@ func (server *Server) Lock() {
server.data.mu.Lock()
}
func (Server *Server) Unlock() {
Server.data.mu.Unlock()
func (server *Server) Unlock() {
server.data.mu.Unlock()
}
func (server *Server) GetData(key string) interface{} {