Skip to content

Commit 9dce500

Browse files
committed
add three more nocov tags
1 parent b63e3c4 commit 9dce500

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2021-07-19 Dirk Eddelbuettel <[email protected]>
2+
3+
* inst/include/RcppEigenWrap.h: Two more #nocov tags
4+
* src/fastLm.cpp: One more #nocov tag
5+
16
2021-07-18 Dirk Eddelbuettel <[email protected]>
27

38
* inst/tinytest/test_fastLm.R: Add tests for summary

inst/include/RcppEigenWrap.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ namespace Rcpp{
213213
public:
214214
Exporter(SEXP x) : vec(x) {
215215
if (TYPEOF(x) != RTYPE)
216-
throw std::invalid_argument("Wrong R type for mapped vector");
216+
throw std::invalid_argument("Wrong R type for mapped vector"); // #nocov
217217
}
218218
OUT get() {return OUT(vec.begin(), vec.size());}
219219
} ;
@@ -257,7 +257,7 @@ namespace Rcpp{
257257
public:
258258
Exporter(SEXP x) : vec(x), d_ncol(1), d_nrow(Rf_xlength(x)) {
259259
if (TYPEOF(x) != RTYPE)
260-
throw std::invalid_argument("Wrong R type for mapped matrix");
260+
throw std::invalid_argument("Wrong R type for mapped matrix"); // #nocov
261261
if (::Rf_isMatrix(x)) {
262262
int *dims = INTEGER( ::Rf_getAttrib( x, R_DimSymbol ) ) ;
263263
d_nrow = dims[0];

src/fastLm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ namespace lmsol {
142142
std::vector<int> iwork(8 * n);
143143
double wrk;
144144
if (m < n || S.size() != n || Vt.rows() != n || Vt.cols() != n)
145-
throw std::invalid_argument("dimension mismatch in gesvd");
145+
throw std::invalid_argument("dimension mismatch in gesvd"); // #nocov
146146
F77_CALL(dgesdd)("O", &m, &n, A.data(), &m, S.data(), A.data(),
147147
&m, Vt.data(), &n, &wrk, &mone, &iwork[0], &info);
148148
int lwork(wrk);

0 commit comments

Comments
 (0)