• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

RobotWebTools / rclnodejs / 26430812166
85%

Build:
DEFAULT BRANCH: develop
Ran 26 May 2026 03:55AM UTC
Jobs 1
Files 63
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 May 2026 03:38AM UTC coverage: 85.47% (-0.004%) from 85.474%
26430812166

push

github

web-flow
Add publisher/subscription_event_type_is_supported (#1520)

Port rclpy PR ros2/rclpy#1647 (commit cfac914) to expose `rcl_publisher_event_type_is_supported()` and `rcl_subscription_event_type_is_supported()`, so user code can query the active RMW implementation about which QoS events it delivers before wiring up a handler.

The underlying rcl APIs (ros2/rcl#1317) ship in ROS 2 Rolling only.

* Native binding (`src/rcl_event_handle_bindings.cpp`): N-API wrappers exported as `isPublisherEventTypeSupported` / `isSubscriptionEventTypeSupported`, both gated by `#if ROS_VERSION >= 5000`.
* JS wrapper (`lib/event_handler.js`): public `isPublisherEventTypeSupported(eventType)` / `isSubscriptionEventTypeSupported(eventType)`. Availability guard keys off `typeof rclnodejs.<fn> !== 'function'` (mirrors the C++ build gate, matches the existing pattern in `lib/action/client.js`) and throws `OperationError` on pre-rolling. Argument validation uses `TypeValidationError` / `RangeValidationError` for consistency with `lib/time.js`, `lib/logging.js`, `lib/message_serialization.js`.
* Tests (`test/test-event-handle.js`): two suites gated on native-symbol presence — asserts the unavailable-throw path, boolean returns for every enum value, `MATCHED` reported supported, and the right validation-error class/message for invalid inputs.

Fix: #1519

1838 of 2335 branches covered (78.72%)

Branch coverage included in aggregate %.

13 of 15 new or added lines in 1 file covered. (86.67%)

3621 of 4052 relevant lines covered (89.36%)

399.18 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
88.11
-0.78% lib/event_handler.js
Jobs
ID Job ID Ran Files Coverage
1 26430812166.1 26 May 2026 03:55AM UTC 63
85.47
GitHub Action Run
Source Files on build 26430812166
  • Tree
  • List 63
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #26430812166
  • b527ca38 on github
  • Prev Build on develop (#26385587931)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc