test(device): add tests for the data callbacks and ConditionalRun()

- OnData() with single messages and with Parts on all transports;
  a callback that returns false ends Run() and the device goes to Ready
- Two input channels (poller path) and one input channel per transport
  (one poll thread per transport, per-channel transport override)
- ConditionalRun() ends Run() when it returns false; the rate option
  limits the calls

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Claude
2026-11-03 14:56:14 +00:00
committed by Dennis Klein
parent 788ca57859
commit 4ae5a6d2f5
2 changed files with 272 additions and 0 deletions

View File

@@ -133,6 +133,7 @@ add_testsuite(Device
device/_multiple_devices.cxx
device/_version.cxx
device/_config.cxx
device/_data_callbacks.cxx
device/_waitfor.cxx
device/_exceptions.cxx
device/_error_state.cxx