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

fliuzzi02 / nmealib / 22924391012

10 Mar 2026 09:08PM UTC coverage: 88.097% (-5.2%) from 93.285%
22924391012

push

github

web-flow
Feature/nmea2000 pgn127250 support (#64)

* [FIX] MessageRegistry to streamline message creation and remove redundant creator methods

* Add support for PGN 127250 - Speed, Water Referenced

- Implement PGN127250 class with constructors, getters, and serialization methods.
- Update CMakeLists.txt to include PGN127250 source files.
- Modify MessageRegistry to handle PGN 127250 message creation.
- Introduce Angle and SignedAngle types in dataTypes.h for angle representation.

* Refactor equality comparison methods to remove hasEqualContent and streamline operator== implementation

* [FIX] Cleanup of getStringContent() method

35 of 137 new or added lines in 7 files covered. (25.55%)

1643 of 1865 relevant lines covered (88.1%)

18.81 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

85.71
/src/nmea2000/messageRegistry.cpp
1
#include "messageRegistry.hpp"
2

3
#include "nmealib/nmea2000/PGN128259.h"
4
#include "nmealib/nmea2000/PGN127250.h"
5

6

7
namespace nmealib {
8
namespace nmea2000 {
9

10
MessageRegistry& MessageRegistry::instance() {
47✔
11
    static MessageRegistry registry;
12
    return registry;
47✔
13
}
14

15
std::unique_ptr<Message2000> MessageRegistry::create(std::uint32_t pgn,
47✔
16
                                                      std::unique_ptr<Message2000> baseMessage) {
17
    if (pgn == 128259) {
47✔
18
        return PGN128259::create(std::move(baseMessage));
38✔
19
    } else if (pgn == 127250) {
27✔
NEW
20
        return PGN127250::create(std::move(baseMessage));
×
21

22
    } else {
23
        return baseMessage;
24
    }
25
}
26

27
} // namespace nmea2000
28
} // namespace nmealib
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