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

pybricks / pybricks-micropython / 13809214233
56%

Build:
DEFAULT BRANCH: master
Ran 12 Mar 2025 10:33AM UTC
Jobs 2
Files 119
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

12 Mar 2025 10:32AM UTC coverage: 56.949% (+0.6%) from 56.307%
13809214233

push

github

web-flow
pbio/port: Rework ports as pbio module.

In the long run, we want ports to work not just on
Powered UP but also EV3. We also want to allow
direct user access to UART and I2C ports, so we
need a mechanism to switch modes.

If the 6-wire port is abstracted by pbio/drv, then
all detection and data algorithms can be shared
and placed in pbio.

Flattening all these abstractions also reduces
code size and complexity despite adding quite a
bit more functionality. We could disable unused
functions on some ports to save even more space.

-------------------------------------------------

Also squashes the following commits since it did
not ultimately help simplify the diff as intended.

pbio/drv/legodev_pup_uart: Rename files to lump.

It gets rather confusing if we have uart_dev_t, uart_device_dev_t, and lego_uart_dev_t when they are all different things.

Also, these are not restructed to pup. So rename to LEGO UART Messaging Protocol (lump) as we do internally in a few places.

pbio/drv/legodev_pup_uart: Rename refs to lump.

It gets rather confusing if we have uart_dev_t, uart_device_dev_t, and lego_uart_dev_t when they are all different things.

Also, these are not restricted to pup. So rename to LEGO UART Messaging Protocol (lump) as we do internally in a few places.

513 of 789 new or added lines in 24 files covered. (65.02%)

20 existing lines in 5 files now uncovered.

3827 of 6720 relevant lines covered (56.95%)

20617035.94 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
69.23
5.59% lib/pbio/src/main.c
1
83.33
-16.67% lib/pbio/src/motor/servo_settings.c
1
78.57
-0.17% lib/pbio/src/servo.c
1
0.0
0.0% pybricks/pupdevices/pb_type_pupdevices_pfmotor.c
2
0.0
0.0% pybricks/pupdevices/pb_type_pupdevices_tiltsensor.c
3
71.93
-7.76% lib/pbio/src/dcmotor.c
3
0.0
0.0% pybricks/pupdevices/pb_type_pupdevices_colorlightmatrix.c
4
0.0
0.0% pybricks/pupdevices/pb_type_pupdevices_forcesensor.c
4
0.0
0.0% pybricks/pupdevices/pb_type_pupdevices_ultrasonicsensor.c
6
0.0
lib/pbio/include/pbio/port_lump.h
6
0.0
0.0% pybricks/pupdevices/pb_type_pupdevices_colordistancesensor.c
6
0.0
0.0% pybricks/pupdevices/pb_type_pupdevices_infraredsensor.c
6
0.0
0.0% pybricks/pupdevices/pb_type_pupdevices_light.c
7
0.0
0.0% pybricks/pupdevices/pb_type_pupdevices_colorsensor.c
8
20.0
lib/pbio/drv/gpio/gpio_virtual.c
11
42.02
1.47% pybricks/common/pb_type_motor.c
15
0.0
-21.43% pybricks/common/pb_type_device.c
21
43.24
lib/pbio/drv/ioport/ioport.c
31
78.91
lib/pbio/src/port.c
139
68.19
lib/pbio/src/port_lump.c

Uncovered Existing Lines

Lines Coverage ∆ File
1
71.93
-7.76% lib/pbio/src/dcmotor.c
1
83.33
-16.67% lib/pbio/src/motor/servo_settings.c
2
42.02
1.47% pybricks/common/pb_type_motor.c
8
95.92
-0.12% bricks/virtualhub/build-coverage/genhdr/compressed.data.h
8
0.0
-21.43% pybricks/common/pb_type_device.c
Jobs
ID Job ID Ran Files Coverage
1 PBIO - 13809214233.1 12 Mar 2025 10:35AM UTC 68
61.48
GitHub Action Run
2 virtualhub - 13809214233.2 12 Mar 2025 10:33AM UTC 94
50.2
GitHub Action Run
Source Files on build 13809214233
  • Tree
  • List 119
  • Changed 23
  • Source Changed 22
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13809214233
  • 7779f86e on github
  • Prev Build on ev3-merge (#13808134607)
  • Next Build on master (#13809554463)
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