Skip to content

Draft: Use gomock for mock testing Client and EventRecorder

Hossein Pursultani requested to merge 188-client-mock into master

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

Merge request reports

Loading