summaryrefslogtreecommitdiff
path: root/docs/jacoco-ut/bjc.everge/ReplError.java.html
diff options
context:
space:
mode:
authorbculkin2442 <bjculkin@mix.wvu.edu>2019-09-09 20:13:50 -0400
committerbculkin2442 <bjculkin@mix.wvu.edu>2019-09-09 20:13:50 -0400
commitffdeed6d39f651bc6ffb75ecf9b8134798041f82 (patch)
treeba629e526068b0ba4a21341f8147c48289dce220 /docs/jacoco-ut/bjc.everge/ReplError.java.html
parentc6897211cb5da8c5bbbaf267db8ad020eb63a114 (diff)
Upgrade version to 0.2
Diffstat (limited to 'docs/jacoco-ut/bjc.everge/ReplError.java.html')
-rw-r--r--docs/jacoco-ut/bjc.everge/ReplError.java.html27
1 files changed, 20 insertions, 7 deletions
diff --git a/docs/jacoco-ut/bjc.everge/ReplError.java.html b/docs/jacoco-ut/bjc.everge/ReplError.java.html
index 1e0ba81..7c92b1c 100644
--- a/docs/jacoco-ut/bjc.everge/ReplError.java.html
+++ b/docs/jacoco-ut/bjc.everge/ReplError.java.html
@@ -7,7 +7,7 @@
*/
public class ReplError {
/**
- * The line the error occured on.
+ * The line the error occurred on.
*/
public int line;
/**
@@ -70,18 +70,31 @@ public class ReplError {
<span class="nc" id="L70"> return String.format(&quot;line %d, pair %d:%s\n\t%s&quot;, line, numPairs, msg, errString);</span>
}
+ /**
+ * Convert the error to a printable string.
+ *
+ * @return The error as a printable string.
+ */
public String toPrintString() {
-<span class="nc" id="L74"> return toPrintString(&quot;&quot;);</span>
+<span class="nc" id="L79"> return toPrintString(&quot;&quot;);</span>
}
+ /**
+ * Convert the error to a printable string, with a custom header.
+ *
+ * @param hdr
+ * The text to include in the header.
+ *
+ * @return The error as a printable string.
+ */
public String toPrintString(String hdr) {
String errString;
-<span class="fc bfc" id="L79" title="All 2 branches covered."> if (txt == null) errString = &quot;No associated line&quot;;</span>
-<span class="pc bpc" id="L80" title="1 of 2 branches missed."> else if (txt.equals(&quot;&quot;)) errString = &quot;Text of line was empty&quot;;</span>
-<span class="fc" id="L81"> else errString = &quot;Text of line was: &quot; + txt;</span>
+<span class="pc bpc" id="L92" title="1 of 2 branches missed."> if (txt == null) errString = &quot;No associated line&quot;;</span>
+<span class="nc bnc" id="L93" title="All 2 branches missed."> else if (txt.equals(&quot;&quot;)) errString = &quot;Text of line was empty&quot;;</span>
+<span class="nc" id="L94"> else errString = &quot;Text of line was: &quot; + txt;</span>
-<span class="fc" id="L83"> return String.format(&quot;[ERROR] line %d, pair %d: %s\n%s\tContext: %s&quot;,</span>
-<span class="fc" id="L84"> line, numPairs, msg, hdr, errString);</span>
+<span class="fc" id="L96"> return String.format(&quot;[ERROR] line %d, pair %d: %s\n%s\tContext: %s&quot;,</span>
+<span class="fc" id="L97"> line, numPairs, msg, hdr, errString);</span>
}
}
</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.2.201808211720</span></div></body></html> \ No newline at end of file