globe-and-citizen / layer8

This repo contains the Layer8 Resource/Authentication Server, Proxy, and Service Provider Mocks
GNU General Public License v2.0
1 stars 2 forks source link

Increasing Test Coverage of "Controller.go" #123

Open stravid87 opened 2 months ago

stravid87 commented 2 months ago

Description

This work item is about increasing coverage of the controller.go file (currently @ 50% ). You will implement B&B testing on the functions listed in the task list.

Acceptance Criteria

Completion of the task list below

### Functions for You to B\&B Test
- [x] func ServeFileHandler(w http.ResponseWriter, r *http.Request, filePath string)
- [x] func ClientProfileHandler(w http.ResponseWriter, r *http.Request)
- [x] func UpdateDisplayNameHandler(w http.ResponseWriter, r *http.Request)

Notes:

You will NOT be testing func GetUsageStats(w http.ResponseWriter, r *http.Request)

stravid87 commented 1 month ago

Great work. Let's let Huzaifa merge first. Then fix conflicts and then open your own PR