Skip to content

Commit 05a3628

Browse files
authored
ci: ignore incorrectly missed lines for coverage (#221)
1 parent 890df86 commit 05a3628

14 files changed

Lines changed: 16 additions & 46 deletions

src/include/cpp-crypto/crypto/message.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Crypto {
2121

2222
////////////////////////////////////////////////////////////////////////////////
2323
// Message Class
24-
class Message {
24+
class Message { // LCOV_EXCL_LINE
2525
public:
2626
////////////////////////////////////////////////////////////////////////////
2727
std::string message;

src/include/cpp-crypto/transactions/transaction.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,8 @@ namespace Crypto {
2626
namespace transactions {
2727

2828
////////////////////////////////////////////////////////////////////////////////
29-
class Transaction {
29+
class Transaction { // LCOV_EXCL_LINE
3030
public:
31-
////////////////////////////////////////////////////////////////////////////
32-
Transaction() = default;
33-
3431
////////////////////////////////////////////////////////////////////////////
3532
Hash32 getId() const;
3633

src/include/cpp-crypto/transactions/transaction_data.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace transactions {
2626

2727
////////////////////////////////////////////////////////////////////////////////
2828
// Transaction Data Model
29-
struct TransactionData {
29+
struct TransactionData { // LCOV_EXCL_START
3030
uint8_t header { TRANSACTION_DEFAULT_HEADER };
3131
uint8_t version { TRANSACTION_VERSION_TYPE_2 };
3232
uint8_t network { Devnet.version };
@@ -54,7 +54,7 @@ struct TransactionData {
5454
signature.resize(SIGNATURE_ECDSA_MAX);
5555
secondSignature.resize(SIGNATURE_ECDSA_MAX);
5656
};
57-
};
57+
}; // LCOV_EXCL_STOP
5858

5959

6060
} // namespace transactions

src/transactions/types/assets.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace transactions {
3030

3131
////////////////////////////////////////////////////////////////////////////////
3232
// AIP-11 Transaction Assets
33-
struct Asset {
33+
struct Asset { // LCOV_EXCL_START
3434
Transfer transfer; // Type 0
3535
SecondSignature secondSignature; // Type 1
3636
DelegateRegistration delegateRegistration; // Type 2
@@ -42,7 +42,7 @@ struct Asset {
4242
HtlcLock htlcLock; // Type 8
4343
HtlcClaim htlcClaim; // Type 9
4444
HtlcRefund htlcRefund; // Type 10
45-
};
45+
}; // LCOV_EXCL_STOP
4646

4747
} // namespace transactions
4848
} // namespace Crypto

src/transactions/types/delegate_registration.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ constexpr uint8_t USERNAME_MAX = 20U;
3232
// Max Length: 20
3333
//
3434
// ---
35-
struct DelegateRegistration {
35+
struct DelegateRegistration { // LCOV_EXCL_LINE
3636
////////////////////////////////////////////////////////////////////////////
3737
uint8_t length { 0U };
3838
std::array<uint8_t, USERNAME_MAX> username { };
@@ -55,9 +55,6 @@ struct DelegateRegistration {
5555
////////////////////////////////////////////////////////////////////////////
5656
static void addToJson(DynamicJsonDocument &jsonDoc,
5757
const std::map<std::string, std::string> &map);
58-
59-
////////////////////////////////////////////////////////////////////////////
60-
DelegateRegistration() = default;
6158
};
6259

6360
} // namespace transactions

src/transactions/types/delegate_resignation.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace transactions {
1717
////////////////////////////////////////////////////////////////////////////////
1818
// Type 7 - Delegate Resignation
1919
// No Asset data needed.
20-
struct DelegateResignation {};
20+
struct DelegateResignation {}; // LCOV_EXCL_LINE
2121

2222
} // namespace transactions
2323
} // namespace Crypto

src/transactions/types/htlc_claim.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace transactions {
2626

2727
////////////////////////////////////////////////////////////////////////////////
2828
// Type 9 - Htlc Claim
29-
struct HtlcClaim {
29+
struct HtlcClaim { // LCOV_EXCL_LINE
3030
////////////////////////////////////////////////////////////////////////////
3131
Hash32 id { };
3232
Hash32 secret { };
@@ -48,9 +48,6 @@ struct HtlcClaim {
4848
////////////////////////////////////////////////////////////////////////////
4949
static void addToJson(DynamicJsonDocument &jsonDoc,
5050
const std::map<std::string, std::string> &map);
51-
52-
////////////////////////////////////////////////////////////////////////////
53-
HtlcClaim() = default;
5451
};
5552

5653
} // namespace transactions

src/transactions/types/htlc_lock.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ constexpr size_t HTLC_LOCK_SIZE = 66U;
2929

3030
////////////////////////////////////////////////////////////////////////////////
3131
// Type 8 - Htlc Lock
32-
struct HtlcLock {
32+
struct HtlcLock { // LCOV_EXCL_LINE
3333
////////////////////////////////////////////////////////////////////////////
3434
uint64_t amount { 0ULL };
3535
Hash32 secretHash { };
@@ -54,9 +54,6 @@ struct HtlcLock {
5454
////////////////////////////////////////////////////////////////////////////
5555
static void addToJson(DynamicJsonDocument &jsonDoc,
5656
const std::map<std::string, std::string> &map);
57-
58-
////////////////////////////////////////////////////////////////////////////
59-
HtlcLock() = default;
6057
};
6158

6259
} // namespace transactions

src/transactions/types/htlc_refund.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace transactions {
2626

2727
////////////////////////////////////////////////////////////////////////////////
2828
// Type 10 - Htlc Refund
29-
struct HtlcRefund {
29+
struct HtlcRefund { // LCOV_EXCL_LINE
3030
////////////////////////////////////////////////////////////////////////////
3131
Hash32 id { };
3232

@@ -47,9 +47,6 @@ struct HtlcRefund {
4747
////////////////////////////////////////////////////////////////////////////
4848
static void addToJson(DynamicJsonDocument &jsonDoc,
4949
const std::map<std::string, std::string> &map);
50-
51-
////////////////////////////////////////////////////////////////////////////
52-
HtlcRefund() = default;
5350
};
5451

5552

src/transactions/types/ipfs.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ constexpr uint8_t IPFS_MAX = 90U;
2929

3030
////////////////////////////////////////////////////////////////////////////////
3131
// Type 5 - Ipfs
32-
struct Ipfs {
32+
struct Ipfs { // LCOV_EXCL_LINE
3333
////////////////////////////////////////////////////////////////////////////
3434
std::vector<uint8_t> dag;
3535

@@ -49,9 +49,6 @@ struct Ipfs {
4949
////////////////////////////////////////////////////////////////////////////
5050
static void addToJson(DynamicJsonDocument &jsonDoc,
5151
const std::map<std::string, std::string> &map);
52-
53-
////////////////////////////////////////////////////////////////////////////
54-
Ipfs() = default;
5552
};
5653

5754
} // namespace transactions

0 commit comments

Comments
 (0)