Skip to content

Conversation

@simar-rekhi
Copy link
Member

Aims to resolve #283

I ended up making three files
configs/setup_test.go
controllers/controller_utils_test.go
controllers/course_test.go

(not exactly sure if the code for the above files goes in some other header file in their respective directories, but if need be, I can migrate the functions to those respective locations)

Added unit tests for GetOptionLimit and GetAggregateLimit functions to verify correct parsing of offset parameters and multi-offset pagination.
@mikehquan19
Copy link
Contributor

For now, that's test structure is totally fine with filename.go and filename_test.go to be next to each other. I do need to discuss the test directories later during semester meetings though.

I will look into the details of test soon. Thanks!

@mikehquan19 mikehquan19 self-requested a review January 14, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add basic unit test to configs setup and course endpoints for future improvement

2 participants