Skip to content

Commit

Permalink
ci: ignore incorrectly missed lines for coverage (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepdefic1t authored Mar 6, 2020
1 parent 890df86 commit 05a3628
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 46 deletions.
2 changes: 1 addition & 1 deletion src/include/cpp-crypto/crypto/message.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace Crypto {

////////////////////////////////////////////////////////////////////////////////
// Message Class
class Message {
class Message { // LCOV_EXCL_LINE
public:
////////////////////////////////////////////////////////////////////////////
std::string message;
Expand Down
5 changes: 1 addition & 4 deletions src/include/cpp-crypto/transactions/transaction.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@ namespace Crypto {
namespace transactions {

////////////////////////////////////////////////////////////////////////////////
class Transaction {
class Transaction { // LCOV_EXCL_LINE
public:
////////////////////////////////////////////////////////////////////////////
Transaction() = default;

////////////////////////////////////////////////////////////////////////////
Hash32 getId() const;

Expand Down
4 changes: 2 additions & 2 deletions src/include/cpp-crypto/transactions/transaction_data.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace transactions {

////////////////////////////////////////////////////////////////////////////////
// Transaction Data Model
struct TransactionData {
struct TransactionData { // LCOV_EXCL_START
uint8_t header { TRANSACTION_DEFAULT_HEADER };
uint8_t version { TRANSACTION_VERSION_TYPE_2 };
uint8_t network { Devnet.version };
Expand Down Expand Up @@ -54,7 +54,7 @@ struct TransactionData {
signature.resize(SIGNATURE_ECDSA_MAX);
secondSignature.resize(SIGNATURE_ECDSA_MAX);
};
};
}; // LCOV_EXCL_STOP


} // namespace transactions
Expand Down
4 changes: 2 additions & 2 deletions src/transactions/types/assets.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace transactions {

////////////////////////////////////////////////////////////////////////////////
// AIP-11 Transaction Assets
struct Asset {
struct Asset { // LCOV_EXCL_START
Transfer transfer; // Type 0
SecondSignature secondSignature; // Type 1
DelegateRegistration delegateRegistration; // Type 2
Expand All @@ -42,7 +42,7 @@ struct Asset {
HtlcLock htlcLock; // Type 8
HtlcClaim htlcClaim; // Type 9
HtlcRefund htlcRefund; // Type 10
};
}; // LCOV_EXCL_STOP

} // namespace transactions
} // namespace Crypto
Expand Down
5 changes: 1 addition & 4 deletions src/transactions/types/delegate_registration.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ constexpr uint8_t USERNAME_MAX = 20U;
// Max Length: 20
//
// ---
struct DelegateRegistration {
struct DelegateRegistration { // LCOV_EXCL_LINE
////////////////////////////////////////////////////////////////////////////
uint8_t length { 0U };
std::array<uint8_t, USERNAME_MAX> username { };
Expand All @@ -55,9 +55,6 @@ struct DelegateRegistration {
////////////////////////////////////////////////////////////////////////////
static void addToJson(DynamicJsonDocument &jsonDoc,
const std::map<std::string, std::string> &map);

////////////////////////////////////////////////////////////////////////////
DelegateRegistration() = default;
};

} // namespace transactions
Expand Down
2 changes: 1 addition & 1 deletion src/transactions/types/delegate_resignation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace transactions {
////////////////////////////////////////////////////////////////////////////////
// Type 7 - Delegate Resignation
// No Asset data needed.
struct DelegateResignation {};
struct DelegateResignation {}; // LCOV_EXCL_LINE

} // namespace transactions
} // namespace Crypto
Expand Down
5 changes: 1 addition & 4 deletions src/transactions/types/htlc_claim.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace transactions {

////////////////////////////////////////////////////////////////////////////////
// Type 9 - Htlc Claim
struct HtlcClaim {
struct HtlcClaim { // LCOV_EXCL_LINE
////////////////////////////////////////////////////////////////////////////
Hash32 id { };
Hash32 secret { };
Expand All @@ -48,9 +48,6 @@ struct HtlcClaim {
////////////////////////////////////////////////////////////////////////////
static void addToJson(DynamicJsonDocument &jsonDoc,
const std::map<std::string, std::string> &map);

////////////////////////////////////////////////////////////////////////////
HtlcClaim() = default;
};

} // namespace transactions
Expand Down
5 changes: 1 addition & 4 deletions src/transactions/types/htlc_lock.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ constexpr size_t HTLC_LOCK_SIZE = 66U;

////////////////////////////////////////////////////////////////////////////////
// Type 8 - Htlc Lock
struct HtlcLock {
struct HtlcLock { // LCOV_EXCL_LINE
////////////////////////////////////////////////////////////////////////////
uint64_t amount { 0ULL };
Hash32 secretHash { };
Expand All @@ -54,9 +54,6 @@ struct HtlcLock {
////////////////////////////////////////////////////////////////////////////
static void addToJson(DynamicJsonDocument &jsonDoc,
const std::map<std::string, std::string> &map);

////////////////////////////////////////////////////////////////////////////
HtlcLock() = default;
};

} // namespace transactions
Expand Down
5 changes: 1 addition & 4 deletions src/transactions/types/htlc_refund.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace transactions {

////////////////////////////////////////////////////////////////////////////////
// Type 10 - Htlc Refund
struct HtlcRefund {
struct HtlcRefund { // LCOV_EXCL_LINE
////////////////////////////////////////////////////////////////////////////
Hash32 id { };

Expand All @@ -47,9 +47,6 @@ struct HtlcRefund {
////////////////////////////////////////////////////////////////////////////
static void addToJson(DynamicJsonDocument &jsonDoc,
const std::map<std::string, std::string> &map);

////////////////////////////////////////////////////////////////////////////
HtlcRefund() = default;
};


Expand Down
5 changes: 1 addition & 4 deletions src/transactions/types/ipfs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ constexpr uint8_t IPFS_MAX = 90U;

////////////////////////////////////////////////////////////////////////////////
// Type 5 - Ipfs
struct Ipfs {
struct Ipfs { // LCOV_EXCL_LINE
////////////////////////////////////////////////////////////////////////////
std::vector<uint8_t> dag;

Expand All @@ -49,9 +49,6 @@ struct Ipfs {
////////////////////////////////////////////////////////////////////////////
static void addToJson(DynamicJsonDocument &jsonDoc,
const std::map<std::string, std::string> &map);

////////////////////////////////////////////////////////////////////////////
Ipfs() = default;
};

} // namespace transactions
Expand Down
5 changes: 1 addition & 4 deletions src/transactions/types/multi_payment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ constexpr auto KEY_N_PAYMENTS_LABEL = "n_payments";
// Particularly in embedded environments.
//
// ---
struct MultiPayment {
struct MultiPayment { // LCOV_EXCL_LINE
////////////////////////////////////////////////////////////////////////////
// Network Limit: 100
uint16_t n_payments { 0U };
Expand Down Expand Up @@ -77,9 +77,6 @@ struct MultiPayment {
////////////////////////////////////////////////////////////////////////////
static void addToJson(DynamicJsonDocument &jsonDoc,
const std::map<std::string, std::string> &map);

////////////////////////////////////////////////////////////////////////////
MultiPayment() = default;
};

} // namespace transactions
Expand Down
5 changes: 1 addition & 4 deletions src/transactions/types/second_signature.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace transactions {

////////////////////////////////////////////////////////////////////////////////
// Type 1 - Second Signature Registration
struct SecondSignature {
struct SecondSignature { // LCOV_EXCL_LINE
////////////////////////////////////////////////////////////////////////////
PublicKeyBytes publicKey { };

Expand All @@ -47,9 +47,6 @@ struct SecondSignature {
////////////////////////////////////////////////////////////////////////////
static void addToJson(DynamicJsonDocument &jsonDoc,
const std::map<std::string, std::string> &map);

////////////////////////////////////////////////////////////////////////////
SecondSignature() = default;
};

} // namespace transactions
Expand Down
5 changes: 1 addition & 4 deletions src/transactions/types/transfer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ constexpr size_t TRANSACTION_TYPE_TRANSFER_SIZE = 33UL;

////////////////////////////////////////////////////////////////////////////////
// Type 0 - Transfer
struct Transfer {
struct Transfer { // LCOV_EXCL_LINE
////////////////////////////////////////////////////////////////////////////
uint64_t amount { 0ULL };
uint32_t expiration { 0UL };
Expand All @@ -53,9 +53,6 @@ struct Transfer {
////////////////////////////////////////////////////////////////////////////
static void addToJson(DynamicJsonDocument &jsonDoc,
const std::map<std::string, std::string> &map);

////////////////////////////////////////////////////////////////////////////
Transfer() = default;
};

} // namespace transactions
Expand Down
5 changes: 1 addition & 4 deletions src/transactions/types/vote.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ constexpr uint8_t VOTES_LEN = VOTE_LIMIT * VOTE_LEN;

////////////////////////////////////////////////////////////////////////////////
// Type 3 - Vote
struct Vote {
struct Vote { // LCOV_EXCL_LINE
////////////////////////////////////////////////////////////////////////////
uint8_t count { 0U };
std::array<uint8_t, VOTES_LEN> votes { }; // (1 + 33)N
Expand All @@ -52,9 +52,6 @@ struct Vote {
////////////////////////////////////////////////////////////////////////////
static void addToJson(DynamicJsonDocument &jsonDoc,
const std::map<std::string, std::string> &map);

////////////////////////////////////////////////////////////////////////////
Vote() = default;
};

} // namespace transactions
Expand Down

0 comments on commit 05a3628

Please sign in to comment.