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

blues / note-arduino / 13523375661

25 Feb 2025 02:18PM UTC coverage: 90.526% (-4.3%) from 94.831%
13523375661

Pull #132

github

web-flow
Merge 94f998ff5 into 2efe3032e
Pull Request #132: WIP: Template Singleton `make_` functions

98 of 137 branches covered (71.53%)

Branch coverage included in aggregate %.

28 of 33 new or added lines in 3 files covered. (84.85%)

1 existing line in 1 file now uncovered.

332 of 338 relevant lines covered (98.22%)

15.22 hits per line

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

100.0
/src/NoteLog.hpp
1
#ifndef NOTE_LOG_HPP
2
#define NOTE_LOG_HPP
3

4
#include <stddef.h>
5

6
class NoteLog
7
{
8
public:
9

10
    virtual ~NoteLog(void) {}
5✔
11

12
    /**************************************************************************/
13
    /*!
14
        @brief  Writes a message to the Notecard debug port.
15
        @param    message
16
                A null-terminated, message string.
17
        @return The number of bytes transmitted.
18
    */
19
    /**************************************************************************/
20
    virtual size_t print(const char * message) = 0;
21
};
22

23
/******************************************************************************/
24
/*!
25
    @brief  Helper function to abstract, create and maintain a single instance
26
    of the NoteLog interface implementation, as required by the underlying
27
    `note-c` library.
28
    @param[in] log_parameters
29
               Pointer to the parameters required to instantiate
30
               the platform specific log output implementation.
31
*/
32
/******************************************************************************/
33
template <typename T> NoteLog * make_note_log (T & log_parameters);
34
NoteLog * make_note_log (nullptr_t);
35

36
#endif // NOTE_LOG_HPP
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