Conversation
I'm not sure how to proceed on QueueManager::push() as I've not figured out where in Enqueue to attach a listener/extension/callback/logger.
Codecov Report
@@ Coverage Diff @@
## master #22 +/- ##
============================================
+ Coverage 39.17% 46.11% +6.94%
- Complexity 74 75 +1
============================================
Files 9 9
Lines 217 219 +2
============================================
+ Hits 85 101 +16
+ Misses 132 118 -14
Continue to review full report at Codecov.
|
|
@markstory what exactly are you trying to do with attaching an extension? You can only attach one extension at a time, so maybe a super-class of the one we already attach, and make the attached extension editable? |
|
The scenario I want to write a test for is that QueueManager::push() actually pushes an event to the queue. If mocks are awkward it might be better to do an integration test of push + consuming from a file based queue. |
|
Yeah that might make more sense to me. |
I'm not sure how to proceed on QueueManager::push() as I've not figured out where in Enqueue to attach a listener/extension/callback/logger. @josegonzalez do you know how that could be done?