Open amritanshusikdar opened 2 months ago
This issue has been automatically marked as stale due to the lack of recent activity. It will soon be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed due to the lack of recent activity. /lifecycle rotten
Description The testing patterns in this repository have been a bit inconsistent. We're specifically talking about unit testing here. Below is an instance:
validate()
function is package private because it is used only for the scaffold command as an internal functionality. But this takes away from the unit testability:Validate()
function, which in contrast to the scaffold command is public and includes a correspondingoptions_test.go
file with unit tests solely for this function.Reasons
Acceptance Criteria
scaffold
command are adjusted to follow the same pattern as thecreate
command