• 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/NoteTxn.hpp
1
#ifndef NOTE_TXN_HPP
2
#define NOTE_TXN_HPP
3

4
#include <stddef.h>
5
#include <stdint.h>
6

7
class NoteTxn
8
{
9
public:
10

11
    virtual ~NoteTxn(void) {}
16✔
12

13
    /**************************************************************************/
14
    /*!
15
        @brief  A blocking call used to initiate a transaction with the Notecard
16
        @param[in]  timeout_ms
17
                The number of milliseconds to wait before aborting the request
18
        @returns A boolean indicating success.
19
    */
20
    /**************************************************************************/
21
    virtual bool start (uint32_t timeout_ms) = 0;
22

23
    /**************************************************************************/
24
    /*!
25
        @brief  Non-blocking call to terminate the transaction
26
    */
27
    /**************************************************************************/
28
    virtual void stop (void) = 0;
29
};
30

31
/******************************************************************************/
32
/*!
33
    @brief  Helper function to abstract, create and maintain a single instance
34
    of the NoteTxn interface implementation, as required by the underlying
35
    `note-c` library.
36
    @param[in] txn_parameters
37
               Pointer to the parameters required to instantiate
38
               the platform specific transaction implementation.
39
*/
40
/******************************************************************************/
41
template<typename T> NoteTxn * make_note_txn (T & txn_parameters);
42
NoteTxn * make_note_txn (nullptr_t);
43

44
#endif // NOTE_TXN_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

© 2026 Coveralls, Inc