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

RobotWebTools / rclnodejs / 14726825758
81%

Build:
DEFAULT BRANCH: develop
Ran 29 Apr 2025 08:36AM UTC
Jobs 3
Files 36
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

29 Apr 2025 08:30AM UTC coverage: 85.045% (+0.03%) from 85.019%
14726825758

push

github

web-flow
Add some missing methods from rcl (#1106)

This PR adds missing methods to count publishers, subscriptions, clients, and services in rclnodejs, along with corresponding tests and binding implementations.  
- New tests have been implemented to verify the newly added methods.  
- Binding functions in C++ for subscriptions, publishers, nodes, and contexts have been extended.

| File                                | Description                                          |
| ----------------------------------- | ---------------------------------------------------- |
| test/test-subscription.js           | Added test to verify publisher count on a subscription. |
| test/test-publisher.js              | Added test to verify subscription count on a publisher. |
| test/test-node.js                   | Added tests for counting clients and services on a node.  |
| test/test-context.js                | Added test to verify the context's domain ID.        |
| src/rcl_subscription_bindings.cpp   | Added GetPublisherCount binding.                     |
| src/rcl_publisher_bindings.cpp      | Added GetSubscriptionCount binding.                  |
| src/rcl_node_bindings.cpp           | Added countPublishers, countSubscribers, countClients, and countServices bindings. |
| src/rcl_graph_bindings.cpp          | Removed redundant count functions.                   |
| src/rcl_context_bindings.cpp        | Added GetDomainId binding.                           |
| lib/subscription.js                 | Added publisherCount getter.                         |
| lib/publisher.js                    | Added subscriptionCount getter.                      |
| lib/node.js                        | Added countClients and countServices methods.        |
| lib/context.js                      | Added domainId getter.                               |

Fix: #1107

711 of 928 branches covered (76.62%)

Branch coverage included in aggregate %.

5 of 5 new or added lines in 4 files covered. (100.0%)

1740 of 1954 relevant lines covered (89.05%)

1103.34 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-20.X - 14726825758.1 29 Apr 2025 08:37AM UTC 36
85.01
GitHub Action Run
2 run-22.X - 14726825758.2 29 Apr 2025 08:36AM UTC 36
85.05
GitHub Action Run
3 run-23.X - 14726825758.3 29 Apr 2025 08:37AM UTC 36
85.01
GitHub Action Run
Source Files on build 14726825758
  • Tree
  • List 36
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #14726825758
  • 4a85210e on github
  • Prev Build on develop (#14690303784)
  • Next Build on develop (#14748765899)
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

© 2025 Coveralls, Inc