-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
refactorRefactoring existing code.Refactoring existing code.testsIssues related to tests.Issues related to tests.
Description
In types.go, the tableGeneration() function currently creates the table model and runs the BubbleTea program in the same function. This makes it difficult to test with teatest because the model creation logic can't be accessed separately.
This function will be split into two separate functions:
func createTypeSelectionTable() model {}- This will focus on creating and returning the table as a BubbleTea
model
- This will focus on creating and returning the table as a BubbleTea
func runTypeSelectionTable(endpoint string) error {}- This will focus on running the above
model
- This will focus on running the above
coderabbitai
Metadata
Metadata
Assignees
Labels
refactorRefactoring existing code.Refactoring existing code.testsIssues related to tests.Issues related to tests.
Projects
Status
Completed