Draft: Use gomock for mock testing Client and EventRecorder
NOTE: Not to be merged. This is a PoC
This MR uses gomock
for mocking client.Client
and EventRecorder
in order to test GitLabReconciler.Reconcile
method.
It integrates gomock
with ginkgo
and removes the unit tests and scaffolding that was used for testing the controller with envtest
.
Related to #188 (closed)
Edited by Hossein Pursultani