acoustic-carpenter-78188
10/21/2023, 2:46 PMflytepropeller/pkg /controller/executors from 72.3% to 87.3% coverage
Pull request opened by Future-Outlier
Tracking issue
Fixes #4209
#4273
Describe your changes
Add tests in flytepropeller/pkg /controller/executors to leverage coverage.
• flytepropeller/pkg/controller/executors/execution_context_test.go
• flytepropeller/pkg/controller/executors/kube_test.go
• flytepropeller/pkg/controller/executors/node_lookup_test.go
Note to reviewers
In this pull request, I've introduced two new structs within `flytepropeller/pkg/controller/executors/kube_test.go`: FakeReader and FakeObject.
Since these structs are not yet implemented in Flytepropeller, I could not generate mock objects for testing purposes.
This is the reason behind the current implementation.
Update:
Due to this revert, I have to update my test code.
Check all the applicable boxes
☐ I updated the documentation accordingly.
☑︎ All new and existing tests passed.
☑︎ All commits are signed-off.
Screenshots
Before
image▾
image▾
acoustic-carpenter-78188
10/30/2023, 7:53 AM