Closed grafnu closed 3 years ago
Unit test added. PTAL.
On Fri, Jun 11, 2021 at 5:41 PM henry54809 @.***> wrote:
@.**** commented on this pull request.
In daq/runner.py https://github.com/faucetsdn/daq/pull/880#discussion_r650321920:
def _target_set_trigger(self, device, remote_trigger=False):
if not self._target_set_check_state(device, remote_trigger):
return False
device.wait_remote = False
LOGGER.info('TAPTAP queue device %s', device)
device.queued = True
self._target_set_queue.put(device)
if self._target_triggered_maxed(additional=self._target_set_queue.qsize()):
LOGGER.info('Target device %s triggering queued (%s)',
device, self._target_set_queue.qsize())
def _target_triggered_maxed(self, additional=0):
I think have different definitions of “full” is a source of confusion. Also I think all these changes can be easily unit tested.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/faucetsdn/daq/pull/880#discussion_r650321920, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIEPD5RCHBEFZZRCZZB6RTTSKUKBANCNFSM46RG27KQ .
Codecov Report
62.97% <62.16%> (+0.15%)
68.57% <64.86%> (+0.09%)
66.48% <62.16%> (+0.17%)
67.81% <64.86%> (+0.16%)
67.68% <64.86%> (+0.09%)
72.75% <62.16%> (+<0.01%)
66.73% <62.16%> (+0.05%)
66.79% <62.16%> (+0.11%)
30.77% <48.64%> (+0.37%)
Flags with carried forward coverage won't be shown. Click here to find out more.
100.00% <ø> (ø)
84.20% <78.37%> (-0.71%)
86.50% <0.00%> (-3.18%)
82.19% <0.00%> (-1.37%)
87.65% <0.00%> (-0.86%)
91.54% <0.00%> (+0.44%)
82.84% <0.00%> (+1.18%)
87.70% <0.00%> (+9.30%)
Continue to review full report at Codecov.