Implement these commands specifically:
go test ./cmd/server/ -v
Run with coverage
go test ./cmd/server/ -cover
- ensure consistent status codes across all endpoints
- how the server handles special characters in key/value
- all possible edges cases of non-existent keys, empty inputs and different handler's response
Refer to Go testing package to learn to write unit tests.
Implement these commands specifically:
go test ./cmd/server/ -vRun with coverage
go test ./cmd/server/ -coverRefer to Go testing package to learn to write unit tests.