Skip to content

Add unit tests for the http-handlers #8

@awhvish

Description

@awhvish

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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions