Skip to content

Commit c2797be

Browse files
committed
remove LCOV exclusions
1 parent 64d1c08 commit c2797be

File tree

12 files changed

+47
-41
lines changed

12 files changed

+47
-41
lines changed

include/scl/math/array.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class Array final {
8383
p.m_values[i] = T::read(src + i * T::byteSize());
8484
}
8585
return p;
86-
} // LCOV_EXCL_LINE
86+
}
8787

8888
/**
8989
* @brief Create an array filled with random elements.
@@ -96,7 +96,7 @@ class Array final {
9696
p.m_values[i] = T::random(prg);
9797
}
9898
return p;
99-
} // LCOV_EXCL_LINE
99+
}
100100

101101
/**
102102
* @brief Get an Array filled with the multiplicative identity
@@ -338,7 +338,7 @@ class Array final {
338338
Array<T, N> r = *this;
339339
r /= other;
340340
return r;
341-
} // LCOV_EXCL_LINE
341+
}
342342

343343
/**
344344
* @brief Get the value at a particular entry in the product element.

include/scl/math/ec.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ class EC final {
208208
*/
209209
friend EC operator*(const ScalarField& scalar, const EC& point) {
210210
return point * scalar;
211-
} // LCOV_EXCL_LINE
211+
}
212212

213213
/**
214214
* @brief Negate this point.
@@ -252,7 +252,7 @@ class EC final {
252252
*/
253253
bool isPointAtInfinity() const {
254254
return details::isPointAtInfinity<CURVE>(m_value);
255-
} // LCOV_EXCL_LINE
255+
}
256256

257257
/**
258258
* @brief Return this point as a pair of affine coordinates.
@@ -261,7 +261,7 @@ class EC final {
261261
*/
262262
std::array<Field, 2> toAffine() const {
263263
return details::toAffine<CURVE>(m_value);
264-
} // LCOV_EXCL_LINE
264+
}
265265

266266
/**
267267
* @brief Normalize this point.
@@ -280,7 +280,7 @@ class EC final {
280280
*/
281281
std::string toString() const {
282282
return details::toString<CURVE>(m_value);
283-
} // LCOV_EXCL_LINE
283+
}
284284

285285
/**
286286
* @brief Operator << for printing a curve point.
@@ -294,7 +294,7 @@ class EC final {
294294
*/
295295
void write(unsigned char* dest, bool compress) const {
296296
details::toBytes<CURVE>(dest, m_value, compress);
297-
} // LCOV_EXCL_LINE
297+
}
298298

299299
private:
300300
typename CURVE::ValueType m_value;

include/scl/math/ff.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class FF final {
6262
FF e;
6363
details::fromBytes<FIELD>(e.m_value, src);
6464
return e;
65-
} // LCOV_EXCL_LINE
65+
}
6666

6767
/**
6868
* @brief Create a random element, using a supplied PRG.
@@ -227,7 +227,7 @@ class FF final {
227227
details::negate<FIELD>(copy);
228228
r.m_value = copy;
229229
return r;
230-
} // LCOV_EXCL_LINE
230+
}
231231

232232
/**
233233
* @brief Negate a finite field element.

include/scl/math/matrix.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class Matrix final {
145145
I(i, i) = ELEMENT(1);
146146
}
147147
return I;
148-
} // LCOV_EXCL_LINE
148+
}
149149

150150
/**
151151
* @brief Construct an empty 0-by-0 matrix.
@@ -454,7 +454,7 @@ Matrix<ELEMENT> Matrix<ELEMENT>::vandermonde(std::size_t n,
454454
}
455455
}
456456
return v;
457-
} // LCOV_EXCL_LINE
457+
}
458458

459459
template <typename ELEMENT>
460460
Matrix<ELEMENT> Matrix<ELEMENT>::hyperInvertible(std::size_t n, std::size_t m) {
@@ -489,7 +489,7 @@ Matrix<ELEMENT> Matrix<ELEMENT>::multiply(const Matrix<ELEMENT>& other) const {
489489
}
490490
}
491491
return result;
492-
} // LCOV_EXCL_LINE
492+
}
493493

494494
template <typename ELEMENT>
495495
Vector<ELEMENT> Matrix<ELEMENT>::multiply(const Vector<ELEMENT>& vector) const {
@@ -722,7 +722,7 @@ Vector<ELEMENT> extractSolution(const Matrix<ELEMENT>& A) {
722722
}
723723
}
724724
return x;
725-
} // LCOV_EXCL_LINE
725+
}
726726

727727
/**
728728
* @brief Check if a linear system has a solution.

include/scl/math/poly.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class Polynomial {
6161
y = *it++ + y * x;
6262
}
6363
return y;
64-
} // LCOV_EXCL_LINE
64+
}
6565

6666
/**
6767
* @brief Access coefficients, with the constant term at position 0.
@@ -213,7 +213,7 @@ Vector<RING> padCoefficients(const Polynomial<RING>& p, std::size_t n) {
213213
}
214214
}
215215
return c;
216-
} // LCOV_EXCL_LINE
216+
}
217217

218218
template <typename RING>
219219
Polynomial<RING> Polynomial<RING>::add(const Polynomial<RING>& q) const {

include/scl/math/vector.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ T innerProd(IT0 xb, IT0 xe, IT1 yb) {
4646
v += *xb++ * *yb++;
4747
}
4848
return v;
49-
} // LCOV_EXCL_LINE
49+
}
5050

5151
/**
5252
* @brief Vector.
@@ -259,7 +259,7 @@ class Vector final {
259259
sum += v;
260260
}
261261
return sum;
262-
} // LCOV_EXCL_LINE
262+
}
263263

264264
/**
265265
* @brief Scale this vector by a constant.

include/scl/net/packet.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class Packet {
128128
const auto sz = Serializer<T>::read(v, get() + m_read_ptr);
129129
m_read_ptr += sz;
130130
return v;
131-
} // LCOV_EXCL_LINE
131+
}
132132

133133
/**
134134
* @brief Write an object to this packet.
@@ -295,7 +295,7 @@ class Packet {
295295
// Not testing this at the moment. It would be better if allocation of the
296296
// internal buffer has handled by an allocator type of some sort. Possibly
297297
// one from the standard library.
298-
throw std::bad_alloc(); // LCOV_EXCL_LINE
298+
throw std::bad_alloc();
299299
}
300300
m_buffer.reset(static_cast<unsigned char*>(buf_new));
301301
m_cap = new_size;

include/scl/primitives/merkle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ auto MerkleTree<HASH, LEAF>::hashLeafs(const std::vector<LEAF>& data)
8989
}
9090

9191
return digests;
92-
} // LCOV_EXCL_LINE
92+
}
9393

9494
template <typename HASH, typename LEAF>
9595
auto MerkleTree<HASH, LEAF>::hash(const std::vector<LEAF>& data) -> DigestType {

include/scl/simulation/channel_id.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323

2424
namespace scl {
2525

26+
/**
27+
* @brief x
28+
*/
2629
struct ChannelId final {
2730
std::size_t local;
2831
std::size_t remote;
@@ -36,6 +39,9 @@ struct ChannelId final {
3639

3740
} // namespace scl
3841

42+
/**
43+
* @brief x
44+
*/
3945
template <>
4046
struct std::hash<scl::ChannelId> {
4147
std::size_t operator()(const scl::ChannelId& channel_id) const {

src/scl/hex.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ std::string scl::toHexString(const __uint128_t& v) {
3636
str = ss.str();
3737
}
3838
return str;
39-
} // LCOV_EXCL_LINE
39+
}

0 commit comments

Comments
 (0)