PduApi 2.2.1
PduApi - Toolbox
Loading...
Searching...
No Matches
Quality

Quality has different aspects:

  • Quality by tests
  • Quality of Source Code

Quality by tests

PduApi uses google-test to evaluate unit tests, functional tests and system tests. The complete tests are part of the build process and will be done before commit/checkin.

Quality of Source Code

Quality by Coverage of Source Code

The Coverage of the Source code by tests is XX%.

Quality by compiling options

Quality of Source Code is improved by compiling with following GCC Options which show all warnings and handles them like an error.

Quality by coding style

PduApi depending on the adapter PduApi doesn't use unneeded polling.

Memory safety

PduApi has almost no pointers and new statements inside. It uses the new variadic template features of C++x11 and above:

  • std::shared_ptr, std::weak_ptr, std::unique_ptr, std::reference_wrapper are used instead of pointer handling.
  • std::make_shared is used instead of new.
  • std::vector is used for dynamic buffer allocation to avoid memory leaks.