Skip to content

Commit b0d6219

Browse files
author
jeremylt
committed
codecov - add a couple of more exlcusion tags
1 parent f0f672a commit b0d6219

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

interface/ceed-basis.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,8 +1035,10 @@ int CeedLobattoQuadrature(CeedInt Q, CeedScalar *qref1d,
10351035
// Build qref1d, qweight1d
10361036
// Set endpoints
10371037
if (Q < 2)
1038+
// LCOV_EXCL_START
10381039
return CeedError(NULL, 1,
10391040
"Cannot create Lobatto quadrature with Q=%d < 2 points", Q);
1041+
// LCOV_EXCL_STOP
10401042
wi = 2.0/((CeedScalar)(Q*(Q-1)));
10411043
if (qweight1d) {
10421044
qweight1d[0] = wi;

interface/ceed-operator.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,8 +682,10 @@ int CeedOperatorSetField(CeedOperator op, const char *fieldname,
682682
// LCOV_EXCL_STOP
683683
found:
684684
if (r == CEED_ELEMRESTRICTION_NONE && qfield->emode != CEED_EVAL_WEIGHT)
685+
// LCOV_EXCL_START
685686
return CeedError(op->ceed, 1, "CEED_ELEMRESTRICTION_NONE can only be used "
686687
"for a field with eval mode CEED_EVAL_WEIGHT");
688+
// LCOV_EXCL_STOP
687689
ierr = CeedCalloc(1, ofield); CeedChk(ierr);
688690
(*ofield)->Erestrict = r;
689691
r->refcount += 1;

interface/ceed.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,10 +820,12 @@ int CeedErrorImpl(Ceed ceed, const char *filename, int lineno, const char *func,
820820
retval = ceed->Error(ceed, filename, lineno, func, ecode, format, args);
821821
} else {
822822
// This function doesn't actually return
823+
// LCOV_EXCL_START
823824
retval = CeedErrorAbort(ceed, filename, lineno, func, ecode, format, args);
824825
}
825826
va_end(args);
826827
return retval;
828+
// LCOV_EXCL_STOP
827829
}
828830

829831
/// @}

0 commit comments

Comments
 (0)