Modified: websites/production/commons/content/proper/commons-csv/cobertura/org.apache.commons.csv.CSVLexer.html ============================================================================== --- websites/production/commons/content/proper/commons-csv/cobertura/org.apache.commons.csv.CSVLexer.html (original) +++ websites/production/commons/content/proper/commons-csv/cobertura/org.apache.commons.csv.CSVLexer.html Thu Mar 21 17:29:49 2013 @@ -89,8 +89,8 @@ <td class="src"><pre class="src"> <span class="comment">/** INTERNAL API. ctor needs to be public so can be called dynamically by PerformanceTest class */</span></pre></td></tr> <tr> <td class="numLine"> 36</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="keyword">public</span> CSVLexer(<span class="keyword">final</span> CSVFormat format, <span class="keyword">final</span> ExtendedBufferedReader in) {</pre></td></tr> -<tr> <td class="numLineCover"> 37</td> <td class="nbHitsCovered"> 30068</td> <td class="src"><pre class="src"> <span class="keyword">super</span>(format, in);</pre></td></tr> -<tr> <td class="numLineCover"> 38</td> <td class="nbHitsCovered"> 30068</td> <td class="src"><pre class="src"> }</pre></td></tr> +<tr> <td class="numLineCover"> 37</td> <td class="nbHitsCovered"> 60136</td> <td class="src"><pre class="src"> <span class="keyword">super</span>(format, in);</pre></td></tr> +<tr> <td class="numLineCover"> 38</td> <td class="nbHitsCovered"> 60136</td> <td class="src"><pre class="src"> }</pre></td></tr> <tr> <td class="numLine"> 39</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> </pre></td></tr> <tr> <td class="numLine"> 40</td> <td class="nbHits"> </td> @@ -123,12 +123,12 @@ <td class="src"><pre class="src"> </pre></td></tr> <tr> <td class="numLine"> 54</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="comment">// get the last read char (required for empty line detection)</span></pre></td></tr> -<tr> <td class="numLineCover"> 55</td> <td class="nbHitsCovered"> 180561</td> <td class="src"><pre class="src"> <span class="keyword">int</span> lastChar = in.getLastChar();</pre></td></tr> +<tr> <td class="numLineCover"> 55</td> <td class="nbHitsCovered"> 361372</td> <td class="src"><pre class="src"> <span class="keyword">int</span> lastChar = in.getLastChar();</pre></td></tr> <tr> <td class="numLine"> 56</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> </pre></td></tr> <tr> <td class="numLine"> 57</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="comment">// read the next char and set eol</span></pre></td></tr> -<tr> <td class="numLineCover"> 58</td> <td class="nbHitsCovered"> 180561</td> <td class="src"><pre class="src"> <span class="keyword">int</span> c = in.read();</pre></td></tr> +<tr> <td class="numLineCover"> 58</td> <td class="nbHitsCovered"> 361372</td> <td class="src"><pre class="src"> <span class="keyword">int</span> c = in.read();</pre></td></tr> <tr> <td class="numLine"> 59</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="comment">/*</span></pre></td></tr> <tr> <td class="numLine"> 60</td> <td class="nbHits"> </td> @@ -137,25 +137,25 @@ <td class="src"><pre class="src"> <span class="comment"> * - they are equivalent here.</span></pre></td></tr> <tr> <td class="numLine"> 62</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="comment"> */</span></pre></td></tr> -<tr> <td class="numLineCover"> 63</td> <td class="nbHitsCovered"> 180561</td> <td class="src"><pre class="src"> <span class="keyword">boolean</span> eol = readEndOfLine(c);</pre></td></tr> +<tr> <td class="numLineCover"> 63</td> <td class="nbHitsCovered"> 361372</td> <td class="src"><pre class="src"> <span class="keyword">boolean</span> eol = readEndOfLine(c);</pre></td></tr> <tr> <td class="numLine"> 64</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> </pre></td></tr> <tr> <td class="numLine"> 65</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="comment">// empty line detection: eol AND (last char was EOL or beginning)</span></pre></td></tr> -<tr> <td class="numLineCover"> 66</td> <td class="nbHitsCovered"><a title="Line 66: Conditional coverage 100% (2/2)."> 180561</a></td> <td class="src"><pre class="src"> <a title="Line 66: Conditional coverage 100% (2/2)."> <span class="keyword">if</span> (ignoreEmptyLines) {</a></pre></td></tr> -<tr> <td class="numLineCover"> 67</td> <td class="nbHitsCovered"><a title="Line 67: Conditional coverage 100% (4/4) [each condition: 100%, 100%]."> 59974</a></td> <td class="src"><pre class="src"> <a title="Line 67: Conditional coverage 100% (4/4) [each condition: 100%, 100%]."> <span class="keyword">while</span> (eol && isStartOfLine(lastChar)) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 66</td> <td class="nbHitsCovered"><a title="Line 66: Conditional coverage 100% (2/2)."> 361372</a></td> <td class="src"><pre class="src"> <a title="Line 66: Conditional coverage 100% (2/2)."> <span class="keyword">if</span> (ignoreEmptyLines) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 67</td> <td class="nbHitsCovered"><a title="Line 67: Conditional coverage 100% (4/4) [each condition: 100%, 100%]."> 120369</a></td> <td class="src"><pre class="src"> <a title="Line 67: Conditional coverage 100% (4/4) [each condition: 100%, 100%]."> <span class="keyword">while</span> (eol && isStartOfLine(lastChar)) {</a></pre></td></tr> <tr> <td class="numLine"> 68</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="comment">// go on char ahead ...</span></pre></td></tr> -<tr> <td class="numLineCover"> 69</td> <td class="nbHitsCovered"> 36</td> <td class="src"><pre class="src"> lastChar = c;</pre></td></tr> -<tr> <td class="numLineCover"> 70</td> <td class="nbHitsCovered"> 36</td> <td class="src"><pre class="src"> c = in.read();</pre></td></tr> -<tr> <td class="numLineCover"> 71</td> <td class="nbHitsCovered"> 36</td> <td class="src"><pre class="src"> eol = readEndOfLine(c);</pre></td></tr> +<tr> <td class="numLineCover"> 69</td> <td class="nbHitsCovered"> 72</td> <td class="src"><pre class="src"> lastChar = c;</pre></td></tr> +<tr> <td class="numLineCover"> 70</td> <td class="nbHitsCovered"> 72</td> <td class="src"><pre class="src"> c = in.read();</pre></td></tr> +<tr> <td class="numLineCover"> 71</td> <td class="nbHitsCovered"> 72</td> <td class="src"><pre class="src"> eol = readEndOfLine(c);</pre></td></tr> <tr> <td class="numLine"> 72</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="comment">// reached end of file without any content (empty line at the end)</span></pre></td></tr> -<tr> <td class="numLineCover"> 73</td> <td class="nbHitsCovered"><a title="Line 73: Conditional coverage 100% (2/2)."> 36</a></td> <td class="src"><pre class="src"> <a title="Line 73: Conditional coverage 100% (2/2)."> <span class="keyword">if</span> (isEndOfFile(c)) {</a></pre></td></tr> -<tr> <td class="numLineCover"> 74</td> <td class="nbHitsCovered"> 5</td> <td class="src"><pre class="src"> token.type = EOF;</pre></td></tr> +<tr> <td class="numLineCover"> 73</td> <td class="nbHitsCovered"><a title="Line 73: Conditional coverage 100% (2/2)."> 72</a></td> <td class="src"><pre class="src"> <a title="Line 73: Conditional coverage 100% (2/2)."> <span class="keyword">if</span> (isEndOfFile(c)) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 74</td> <td class="nbHitsCovered"> 10</td> <td class="src"><pre class="src"> token.type = EOF;</pre></td></tr> <tr> <td class="numLine"> 75</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="comment">// don't set tkn.isReady here because no content</span></pre></td></tr> -<tr> <td class="numLineCover"> 76</td> <td class="nbHitsCovered"> 5</td> <td class="src"><pre class="src"> <span class="keyword">return</span> token;</pre></td></tr> +<tr> <td class="numLineCover"> 76</td> <td class="nbHitsCovered"> 10</td> <td class="src"><pre class="src"> <span class="keyword">return</span> token;</pre></td></tr> <tr> <td class="numLine"> 77</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> }</pre></td></tr> <tr> <td class="numLine"> 78</td> <td class="nbHits"> </td> @@ -166,33 +166,33 @@ <td class="src"><pre class="src"> </pre></td></tr> <tr> <td class="numLine"> 81</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="comment">// did we reach eof during the last iteration already ? EOF</span></pre></td></tr> -<tr> <td class="numLineCover"> 82</td> <td class="nbHitsCovered"><a title="Line 82: Conditional coverage 100% (6/6) [each condition: 100%, 100%, 100%]."> 180556</a></td> <td class="src"><pre class="src"> <a title="Line 82: Conditional coverage 100% (6/6) [each condition: 100%, 100%, 100%]."> <span class="keyword">if</span> (isEndOfFile(lastChar) || (!isDelimiter(lastChar) && isEndOfFile(c))) {</a></pre></td></tr> -<tr> <td class="numLineCover"> 83</td> <td class="nbHitsCovered"> 30058</td> <td class="src"><pre class="src"> token.type = EOF;</pre></td></tr> +<tr> <td class="numLineCover"> 82</td> <td class="nbHitsCovered"><a title="Line 82: Conditional coverage 100% (6/6) [each condition: 100%, 100%, 100%]."> 361362</a></td> <td class="src"><pre class="src"> <a title="Line 82: Conditional coverage 100% (6/6) [each condition: 100%, 100%, 100%]."> <span class="keyword">if</span> (isEndOfFile(lastChar) || (!isDelimiter(lastChar) && isEndOfFile(c))) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 83</td> <td class="nbHitsCovered"> 60116</td> <td class="src"><pre class="src"> token.type = EOF;</pre></td></tr> <tr> <td class="numLine"> 84</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="comment">// don't set tkn.isReady here because no content</span></pre></td></tr> -<tr> <td class="numLineCover"> 85</td> <td class="nbHitsCovered"> 30058</td> <td class="src"><pre class="src"> <span class="keyword">return</span> token;</pre></td></tr> +<tr> <td class="numLineCover"> 85</td> <td class="nbHitsCovered"> 60116</td> <td class="src"><pre class="src"> <span class="keyword">return</span> token;</pre></td></tr> <tr> <td class="numLine"> 86</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> }</pre></td></tr> <tr> <td class="numLine"> 87</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> </pre></td></tr> -<tr> <td class="numLineCover"> 88</td> <td class="nbHitsCovered"><a title="Line 88: Conditional coverage 100% (4/4) [each condition: 100%, 100%]."> 150498</a></td> <td class="src"><pre class="src"> <a title="Line 88: Conditional coverage 100% (4/4) [each condition: 100%, 100%]."> <span class="keyword">if</span> (isStartOfLine(lastChar) && isCommentStart(c)) {</a></pre></td></tr> -<tr> <td class="numLineCover"> 89</td> <td class="nbHitsCovered"> 26</td> <td class="src"><pre class="src"> <span class="keyword">final</span> String comment = in.readLine().trim();</pre></td></tr> -<tr> <td class="numLineCover"> 90</td> <td class="nbHitsCovered"> 26</td> <td class="src"><pre class="src"> token.content.append(comment);</pre></td></tr> -<tr> <td class="numLineCover"> 91</td> <td class="nbHitsCovered"> 26</td> <td class="src"><pre class="src"> token.type = COMMENT;</pre></td></tr> -<tr> <td class="numLineCover"> 92</td> <td class="nbHitsCovered"> 26</td> <td class="src"><pre class="src"> <span class="keyword">return</span> token;</pre></td></tr> +<tr> <td class="numLineCover"> 88</td> <td class="nbHitsCovered"><a title="Line 88: Conditional coverage 100% (4/4) [each condition: 100%, 100%]."> 301246</a></td> <td class="src"><pre class="src"> <a title="Line 88: Conditional coverage 100% (4/4) [each condition: 100%, 100%]."> <span class="keyword">if</span> (isStartOfLine(lastChar) && isCommentStart(c)) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 89</td> <td class="nbHitsCovered"> 52</td> <td class="src"><pre class="src"> <span class="keyword">final</span> String comment = in.readLine().trim();</pre></td></tr> +<tr> <td class="numLineCover"> 90</td> <td class="nbHitsCovered"> 52</td> <td class="src"><pre class="src"> token.content.append(comment);</pre></td></tr> +<tr> <td class="numLineCover"> 91</td> <td class="nbHitsCovered"> 52</td> <td class="src"><pre class="src"> token.type = COMMENT;</pre></td></tr> +<tr> <td class="numLineCover"> 92</td> <td class="nbHitsCovered"> 52</td> <td class="src"><pre class="src"> <span class="keyword">return</span> token;</pre></td></tr> <tr> <td class="numLine"> 93</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> }</pre></td></tr> <tr> <td class="numLine"> 94</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> </pre></td></tr> <tr> <td class="numLine"> 95</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="comment">// important: make sure a new char gets consumed in each iteration</span></pre></td></tr> -<tr> <td class="numLineCover"> 96</td> <td class="nbHitsCovered"><a title="Line 96: Conditional coverage 100% (2/2)."> 300943</a></td> <td class="src"><pre class="src"> <a title="Line 96: Conditional coverage 100% (2/2)."> <span class="keyword">while</span> (token.type == INVALID) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 96</td> <td class="nbHitsCovered"><a title="Line 96: Conditional coverage 100% (2/2)."> 602386</a></td> <td class="src"><pre class="src"> <a title="Line 96: Conditional coverage 100% (2/2)."> <span class="keyword">while</span> (token.type == INVALID) {</a></pre></td></tr> <tr> <td class="numLine"> 97</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="comment">// ignore whitespaces at beginning of a token</span></pre></td></tr> -<tr> <td class="numLineCover"> 98</td> <td class="nbHitsCovered"><a title="Line 98: Conditional coverage 100% (2/2)."> 150472</a></td> <td class="src"><pre class="src"> <a title="Line 98: Conditional coverage 100% (2/2)."> <span class="keyword">if</span> (ignoreSurroundingSpaces) {</a></pre></td></tr> -<tr> <td class="numLineCover"> 99</td> <td class="nbHitsCovered"><a title="Line 99: Conditional coverage 100% (4/4) [each condition: 100%, 100%]."> 120</a></td> <td class="src"><pre class="src"> <a title="Line 99: Conditional coverage 100% (4/4) [each condition: 100%, 100%]."> <span class="keyword">while</span> (isWhitespace(c) && !eol) {</a></pre></td></tr> -<tr> <td class="numLineCover"> 100</td> <td class="nbHitsCovered"> 32</td> <td class="src"><pre class="src"> c = in.read();</pre></td></tr> -<tr> <td class="numLineCover"> 101</td> <td class="nbHitsCovered"> 32</td> <td class="src"><pre class="src"> eol = readEndOfLine(c);</pre></td></tr> +<tr> <td class="numLineCover"> 98</td> <td class="nbHitsCovered"><a title="Line 98: Conditional coverage 100% (2/2)."> 301194</a></td> <td class="src"><pre class="src"> <a title="Line 98: Conditional coverage 100% (2/2)."> <span class="keyword">if</span> (ignoreSurroundingSpaces) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 99</td> <td class="nbHitsCovered"><a title="Line 99: Conditional coverage 100% (4/4) [each condition: 100%, 100%]."> 240</a></td> <td class="src"><pre class="src"> <a title="Line 99: Conditional coverage 100% (4/4) [each condition: 100%, 100%]."> <span class="keyword">while</span> (isWhitespace(c) && !eol) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 100</td> <td class="nbHitsCovered"> 64</td> <td class="src"><pre class="src"> c = in.read();</pre></td></tr> +<tr> <td class="numLineCover"> 101</td> <td class="nbHitsCovered"> 64</td> <td class="src"><pre class="src"> eol = readEndOfLine(c);</pre></td></tr> <tr> <td class="numLine"> 102</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> }</pre></td></tr> <tr> <td class="numLine"> 103</td> <td class="nbHits"> </td> @@ -201,39 +201,39 @@ <td class="src"><pre class="src"> </pre></td></tr> <tr> <td class="numLine"> 105</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="comment">// ok, start of token reached: encapsulated, or token</span></pre></td></tr> -<tr> <td class="numLineCover"> 106</td> <td class="nbHitsCovered"><a title="Line 106: Conditional coverage 100% (2/2)."> 150472</a></td> <td class="src"><pre class="src"> <a title="Line 106: Conditional coverage 100% (2/2)."> <span class="keyword">if</span> (isDelimiter(c)) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 106</td> <td class="nbHitsCovered"><a title="Line 106: Conditional coverage 100% (2/2)."> 301194</a></td> <td class="src"><pre class="src"> <a title="Line 106: Conditional coverage 100% (2/2)."> <span class="keyword">if</span> (isDelimiter(c)) {</a></pre></td></tr> <tr> <td class="numLine"> 107</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="comment">// empty token return TOKEN("")</span></pre></td></tr> -<tr> <td class="numLineCover"> 108</td> <td class="nbHitsCovered"> 1781</td> <td class="src"><pre class="src"> token.type = TOKEN;</pre></td></tr> -<tr> <td class="numLineCover"> 109</td> <td class="nbHitsCovered"><a title="Line 109: Conditional coverage 100% (2/2)."> 148691</a></td> <td class="src"><pre class="src"> <a title="Line 109: Conditional coverage 100% (2/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (eol) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 108</td> <td class="nbHitsCovered"> 3426</td> <td class="src"><pre class="src"> token.type = TOKEN;</pre></td></tr> +<tr> <td class="numLineCover"> 109</td> <td class="nbHitsCovered"><a title="Line 109: Conditional coverage 100% (2/2)."> 297768</a></td> <td class="src"><pre class="src"> <a title="Line 109: Conditional coverage 100% (2/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (eol) {</a></pre></td></tr> <tr> <td class="numLine"> 110</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="comment">// empty token return EORECORD("")</span></pre></td></tr> <tr> <td class="numLine"> 111</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="comment">// noop: tkn.content.append("");</span></pre></td></tr> -<tr> <td class="numLineCover"> 112</td> <td class="nbHitsCovered"> 2488</td> <td class="src"><pre class="src"> token.type = EORECORD;</pre></td></tr> -<tr> <td class="numLineCover"> 113</td> <td class="nbHitsCovered"><a title="Line 113: Conditional coverage 100% (2/2)."> 146203</a></td> <td class="src"><pre class="src"> <a title="Line 113: Conditional coverage 100% (2/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (isQuoteChar(c)) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 112</td> <td class="nbHitsCovered"> 4958</td> <td class="src"><pre class="src"> token.type = EORECORD;</pre></td></tr> +<tr> <td class="numLineCover"> 113</td> <td class="nbHitsCovered"><a title="Line 113: Conditional coverage 100% (2/2)."> 292810</a></td> <td class="src"><pre class="src"> <a title="Line 113: Conditional coverage 100% (2/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (isQuoteChar(c)) {</a></pre></td></tr> <tr> <td class="numLine"> 114</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="comment">// consume encapsulated token</span></pre></td></tr> -<tr> <td class="numLineCover"> 115</td> <td class="nbHitsCovered"> 92346</td> <td class="src"><pre class="src"> encapsulatedTokenLexer(token);</pre></td></tr> -<tr> <td class="numLineCover"> 116</td> <td class="nbHitsCovered"><a title="Line 116: Conditional coverage 100% (2/2)."> 53857</a></td> <td class="src"><pre class="src"> <a title="Line 116: Conditional coverage 100% (2/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (isEndOfFile(c)) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 115</td> <td class="nbHitsCovered"> 184987</td> <td class="src"><pre class="src"> encapsulatedTokenLexer(token);</pre></td></tr> +<tr> <td class="numLineCover"> 116</td> <td class="nbHitsCovered"><a title="Line 116: Conditional coverage 100% (2/2)."> 107823</a></td> <td class="src"><pre class="src"> <a title="Line 116: Conditional coverage 100% (2/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (isEndOfFile(c)) {</a></pre></td></tr> <tr> <td class="numLine"> 117</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="comment">// end of file return EOF()</span></pre></td></tr> <tr> <td class="numLine"> 118</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="comment">// noop: tkn.content.append("");</span></pre></td></tr> -<tr> <td class="numLineCover"> 119</td> <td class="nbHitsCovered"> 6</td> <td class="src"><pre class="src"> token.type = EOF;</pre></td></tr> -<tr> <td class="numLineCover"> 120</td> <td class="nbHitsCovered"> 6</td> <td class="src"><pre class="src"> token.isReady = <span class="keyword">true</span>; <span class="comment">// there is data at EOF</span></pre></td></tr> +<tr> <td class="numLineCover"> 119</td> <td class="nbHitsCovered"> 12</td> <td class="src"><pre class="src"> token.type = EOF;</pre></td></tr> +<tr> <td class="numLineCover"> 120</td> <td class="nbHitsCovered"> 12</td> <td class="src"><pre class="src"> token.isReady = <span class="keyword">true</span>; <span class="comment">// there is data at EOF</span></pre></td></tr> <tr> <td class="numLine"> 121</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> } <span class="keyword">else</span> {</pre></td></tr> <tr> <td class="numLine"> 122</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="comment">// next token must be a simple token</span></pre></td></tr> <tr> <td class="numLine"> 123</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="comment">// add removed blanks when not ignoring whitespace chars...</span></pre></td></tr> -<tr> <td class="numLineCover"> 124</td> <td class="nbHitsCovered"> 53851</td> <td class="src"><pre class="src"> simpleTokenLexer(token, c);</pre></td></tr> +<tr> <td class="numLineCover"> 124</td> <td class="nbHitsCovered"> 107811</td> <td class="src"><pre class="src"> simpleTokenLexer(token, c);</pre></td></tr> <tr> <td class="numLine"> 125</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> }</pre></td></tr> <tr> <td class="numLine"> 126</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> }</pre></td></tr> -<tr> <td class="numLineCover"> 127</td> <td class="nbHitsCovered"> 150471</td> <td class="src"><pre class="src"> <span class="keyword">return</span> token;</pre></td></tr> +<tr> <td class="numLineCover"> 127</td> <td class="nbHitsCovered"> 301192</td> <td class="src"><pre class="src"> <span class="keyword">return</span> token;</pre></td></tr> <tr> <td class="numLine"> 128</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> }</pre></td></tr> <tr> <td class="numLine"> 129</td> <td class="nbHits"> </td> @@ -282,36 +282,36 @@ <td class="src"><pre class="src"> <span class="comment">// Faster to use while(true)+break than while(tkn.type == INVALID)</span></pre></td></tr> <tr> <td class="numLine"> 151</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="keyword">while</span> (<span class="keyword">true</span>) {</pre></td></tr> -<tr> <td class="numLineCover"> 152</td> <td class="nbHitsCovered"><a title="Line 152: Conditional coverage 100% (2/2)."> 597864</a></td> <td class="src"><pre class="src"> <a title="Line 152: Conditional coverage 100% (2/2)."> <span class="keyword">if</span> (readEndOfLine(c)) {</a></pre></td></tr> -<tr> <td class="numLineCover"> 153</td> <td class="nbHitsCovered"> 27254</td> <td class="src"><pre class="src"> tkn.type = EORECORD;</pre></td></tr> -<tr> <td class="numLineCover"> 154</td> <td class="nbHitsCovered"> 27254</td> <td class="src"><pre class="src"> <span class="keyword">break</span>;</pre></td></tr> -<tr> <td class="numLineCover"> 155</td> <td class="nbHitsCovered"><a title="Line 155: Conditional coverage 100% (2/2)."> 570610</a></td> <td class="src"><pre class="src"> <a title="Line 155: Conditional coverage 100% (2/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (isEndOfFile(c)) {</a></pre></td></tr> -<tr> <td class="numLineCover"> 156</td> <td class="nbHitsCovered"> 20</td> <td class="src"><pre class="src"> tkn.type = EOF;</pre></td></tr> -<tr> <td class="numLineCover"> 157</td> <td class="nbHitsCovered"> 20</td> <td class="src"><pre class="src"> tkn.isReady = <span class="keyword">true</span>; <span class="comment">// There is data at EOF</span></pre></td></tr> -<tr> <td class="numLineCover"> 158</td> <td class="nbHitsCovered"> 20</td> <td class="src"><pre class="src"> <span class="keyword">break</span>;</pre></td></tr> -<tr> <td class="numLineCover"> 159</td> <td class="nbHitsCovered"><a title="Line 159: Conditional coverage 100% (2/2)."> 570590</a></td> <td class="src"><pre class="src"> <a title="Line 159: Conditional coverage 100% (2/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (isDelimiter(c)) {</a></pre></td></tr> -<tr> <td class="numLineCover"> 160</td> <td class="nbHitsCovered"> 26576</td> <td class="src"><pre class="src"> tkn.type = TOKEN;</pre></td></tr> -<tr> <td class="numLineCover"> 161</td> <td class="nbHitsCovered"> 26576</td> <td class="src"><pre class="src"> <span class="keyword">break</span>;</pre></td></tr> -<tr> <td class="numLineCover"> 162</td> <td class="nbHitsCovered"><a title="Line 162: Conditional coverage 100% (2/2)."> 544014</a></td> <td class="src"><pre class="src"> <a title="Line 162: Conditional coverage 100% (2/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (isEscape(c)) {</a></pre></td></tr> -<tr> <td class="numLineCover"> 163</td> <td class="nbHitsCovered"> 106721</td> <td class="src"><pre class="src"> tkn.content.append((<span class="keyword">char</span>) readEscape());</pre></td></tr> -<tr> <td class="numLineCover"> 164</td> <td class="nbHitsCovered"> 106720</td> <td class="src"><pre class="src"> c = in.read(); <span class="comment">// continue</span></pre></td></tr> +<tr> <td class="numLineCover"> 152</td> <td class="nbHitsCovered"><a title="Line 152: Conditional coverage 100% (2/2)."> 1194934</a></td> <td class="src"><pre class="src"> <a title="Line 152: Conditional coverage 100% (2/2)."> <span class="keyword">if</span> (readEndOfLine(c)) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 153</td> <td class="nbHitsCovered"> 54802</td> <td class="src"><pre class="src"> tkn.type = EORECORD;</pre></td></tr> +<tr> <td class="numLineCover"> 154</td> <td class="nbHitsCovered"> 54802</td> <td class="src"><pre class="src"> <span class="keyword">break</span>;</pre></td></tr> +<tr> <td class="numLineCover"> 155</td> <td class="nbHitsCovered"><a title="Line 155: Conditional coverage 100% (2/2)."> 1140132</a></td> <td class="src"><pre class="src"> <a title="Line 155: Conditional coverage 100% (2/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (isEndOfFile(c)) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 156</td> <td class="nbHitsCovered"> 40</td> <td class="src"><pre class="src"> tkn.type = EOF;</pre></td></tr> +<tr> <td class="numLineCover"> 157</td> <td class="nbHitsCovered"> 40</td> <td class="src"><pre class="src"> tkn.isReady = <span class="keyword">true</span>; <span class="comment">// There is data at EOF</span></pre></td></tr> +<tr> <td class="numLineCover"> 158</td> <td class="nbHitsCovered"> 40</td> <td class="src"><pre class="src"> <span class="keyword">break</span>;</pre></td></tr> +<tr> <td class="numLineCover"> 159</td> <td class="nbHitsCovered"><a title="Line 159: Conditional coverage 100% (2/2)."> 1140092</a></td> <td class="src"><pre class="src"> <a title="Line 159: Conditional coverage 100% (2/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (isDelimiter(c)) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 160</td> <td class="nbHitsCovered"> 52967</td> <td class="src"><pre class="src"> tkn.type = TOKEN;</pre></td></tr> +<tr> <td class="numLineCover"> 161</td> <td class="nbHitsCovered"> 52967</td> <td class="src"><pre class="src"> <span class="keyword">break</span>;</pre></td></tr> +<tr> <td class="numLineCover"> 162</td> <td class="nbHitsCovered"><a title="Line 162: Conditional coverage 100% (2/2)."> 1087125</a></td> <td class="src"><pre class="src"> <a title="Line 162: Conditional coverage 100% (2/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (isEscape(c)) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 163</td> <td class="nbHitsCovered"> 213517</td> <td class="src"><pre class="src"> tkn.content.append((<span class="keyword">char</span>) readEscape());</pre></td></tr> +<tr> <td class="numLineCover"> 164</td> <td class="nbHitsCovered"> 213515</td> <td class="src"><pre class="src"> c = in.read(); <span class="comment">// continue</span></pre></td></tr> <tr> <td class="numLine"> 165</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> } <span class="keyword">else</span> {</pre></td></tr> -<tr> <td class="numLineCover"> 166</td> <td class="nbHitsCovered"> 437293</td> <td class="src"><pre class="src"> tkn.content.append((<span class="keyword">char</span>) c);</pre></td></tr> -<tr> <td class="numLineCover"> 167</td> <td class="nbHitsCovered"> 437293</td> <td class="src"><pre class="src"> c = in.read(); <span class="comment">// continue</span></pre></td></tr> +<tr> <td class="numLineCover"> 166</td> <td class="nbHitsCovered"> 873608</td> <td class="src"><pre class="src"> tkn.content.append((<span class="keyword">char</span>) c);</pre></td></tr> +<tr> <td class="numLineCover"> 167</td> <td class="nbHitsCovered"> 873608</td> <td class="src"><pre class="src"> c = in.read(); <span class="comment">// continue</span></pre></td></tr> <tr> <td class="numLine"> 168</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> }</pre></td></tr> <tr> <td class="numLine"> 169</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> }</pre></td></tr> <tr> <td class="numLine"> 170</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> </pre></td></tr> -<tr> <td class="numLineCover"> 171</td> <td class="nbHitsCovered"><a title="Line 171: Conditional coverage 100% (2/2)."> 53850</a></td> <td class="src"><pre class="src"> <a title="Line 171: Conditional coverage 100% (2/2)."> <span class="keyword">if</span> (ignoreSurroundingSpaces) {</a></pre></td></tr> -<tr> <td class="numLineCover"> 172</td> <td class="nbHitsCovered"> 59</td> <td class="src"><pre class="src"> trimTrailingSpaces(tkn.content);</pre></td></tr> +<tr> <td class="numLineCover"> 171</td> <td class="nbHitsCovered"><a title="Line 171: Conditional coverage 100% (2/2)."> 107809</a></td> <td class="src"><pre class="src"> <a title="Line 171: Conditional coverage 100% (2/2)."> <span class="keyword">if</span> (ignoreSurroundingSpaces) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 172</td> <td class="nbHitsCovered"> 118</td> <td class="src"><pre class="src"> trimTrailingSpaces(tkn.content);</pre></td></tr> <tr> <td class="numLine"> 173</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> }</pre></td></tr> <tr> <td class="numLine"> 174</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> </pre></td></tr> -<tr> <td class="numLineCover"> 175</td> <td class="nbHitsCovered"> 53850</td> <td class="src"><pre class="src"> <span class="keyword">return</span> tkn;</pre></td></tr> +<tr> <td class="numLineCover"> 175</td> <td class="nbHitsCovered"> 107809</td> <td class="src"><pre class="src"> <span class="keyword">return</span> tkn;</pre></td></tr> <tr> <td class="numLine"> 176</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> }</pre></td></tr> <tr> <td class="numLine"> 177</td> <td class="nbHits"> </td> @@ -360,40 +360,40 @@ <td class="src"><pre class="src"> <span class="keyword">private</span> Token encapsulatedTokenLexer(<span class="keyword">final</span> Token tkn) <span class="keyword">throws</span> IOException {</pre></td></tr> <tr> <td class="numLine"> 199</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="comment">// save current line number in case needed for IOE</span></pre></td></tr> -<tr> <td class="numLineCover"> 200</td> <td class="nbHitsCovered"> 92346</td> <td class="src"><pre class="src"> <span class="keyword">final</span> <span class="keyword">long</span> startLineNumber = getLineNumber();</pre></td></tr> +<tr> <td class="numLineCover"> 200</td> <td class="nbHitsCovered"> 184987</td> <td class="src"><pre class="src"> <span class="keyword">final</span> <span class="keyword">long</span> startLineNumber = getLineNumber();</pre></td></tr> <tr> <td class="numLine"> 201</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="keyword">int</span> c;</pre></td></tr> <tr> <td class="numLine"> 202</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="keyword">while</span> (<span class="keyword">true</span>) {</pre></td></tr> -<tr> <td class="numLineCover"> 203</td> <td class="nbHitsCovered"> 1079626</td> <td class="src"><pre class="src"> c = in.read();</pre></td></tr> +<tr> <td class="numLineCover"> 203</td> <td class="nbHitsCovered"> 2159334</td> <td class="src"><pre class="src"> c = in.read();</pre></td></tr> <tr> <td class="numLine"> 204</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> </pre></td></tr> -<tr> <td class="numLineCover"> 205</td> <td class="nbHitsCovered"><a title="Line 205: Conditional coverage 100% (2/2)."> 1079626</a></td> <td class="src"><pre class="src"> <a title="Line 205: Conditional coverage 100% (2/2)."> <span class="keyword">if</span> (isEscape(c)) {</a></pre></td></tr> -<tr> <td class="numLineCover"> 206</td> <td class="nbHitsCovered"> 4</td> <td class="src"><pre class="src"> tkn.content.append((<span class="keyword">char</span>) readEscape());</pre></td></tr> -<tr> <td class="numLineCover"> 207</td> <td class="nbHitsCovered"><a title="Line 207: Conditional coverage 100% (2/2)."> 1079622</a></td> <td class="src"><pre class="src"> <a title="Line 207: Conditional coverage 100% (2/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (isQuoteChar(c)) {</a></pre></td></tr> -<tr> <td class="numLineCover"> 208</td> <td class="nbHitsCovered"><a title="Line 208: Conditional coverage 100% (2/2)."> 145115</a></td> <td class="src"><pre class="src"> <a title="Line 208: Conditional coverage 100% (2/2)."> <span class="keyword">if</span> (isQuoteChar(in.lookAhead())) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 205</td> <td class="nbHitsCovered"><a title="Line 205: Conditional coverage 100% (2/2)."> 2159334</a></td> <td class="src"><pre class="src"> <a title="Line 205: Conditional coverage 100% (2/2)."> <span class="keyword">if</span> (isEscape(c)) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 206</td> <td class="nbHitsCovered"> 8</td> <td class="src"><pre class="src"> tkn.content.append((<span class="keyword">char</span>) readEscape());</pre></td></tr> +<tr> <td class="numLineCover"> 207</td> <td class="nbHitsCovered"><a title="Line 207: Conditional coverage 100% (2/2)."> 2159326</a></td> <td class="src"><pre class="src"> <a title="Line 207: Conditional coverage 100% (2/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (isQuoteChar(c)) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 208</td> <td class="nbHitsCovered"><a title="Line 208: Conditional coverage 100% (2/2)."> 290500</a></td> <td class="src"><pre class="src"> <a title="Line 208: Conditional coverage 100% (2/2)."> <span class="keyword">if</span> (isQuoteChar(in.lookAhead())) {</a></pre></td></tr> <tr> <td class="numLine"> 209</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="comment">// double or escaped encapsulator -> add single encapsulator to token</span></pre></td></tr> -<tr> <td class="numLineCover"> 210</td> <td class="nbHitsCovered"> 52769</td> <td class="src"><pre class="src"> c = in.read();</pre></td></tr> -<tr> <td class="numLineCover"> 211</td> <td class="nbHitsCovered"> 52769</td> <td class="src"><pre class="src"> tkn.content.append((<span class="keyword">char</span>) c);</pre></td></tr> +<tr> <td class="numLineCover"> 210</td> <td class="nbHitsCovered"> 105513</td> <td class="src"><pre class="src"> c = in.read();</pre></td></tr> +<tr> <td class="numLineCover"> 211</td> <td class="nbHitsCovered"> 105513</td> <td class="src"><pre class="src"> tkn.content.append((<span class="keyword">char</span>) c);</pre></td></tr> <tr> <td class="numLine"> 212</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> } <span class="keyword">else</span> {</pre></td></tr> <tr> <td class="numLine"> 213</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="comment">// token finish mark (encapsulator) reached: ignore whitespace till delimiter</span></pre></td></tr> <tr> <td class="numLine"> 214</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="keyword">while</span> (<span class="keyword">true</span>) {</pre></td></tr> -<tr> <td class="numLineCover"> 215</td> <td class="nbHitsCovered"> 92355</td> <td class="src"><pre class="src"> c = in.read();</pre></td></tr> -<tr> <td class="numLineCover"> 216</td> <td class="nbHitsCovered"><a title="Line 216: Conditional coverage 100% (2/2)."> 92355</a></td> <td class="src"><pre class="src"> <a title="Line 216: Conditional coverage 100% (2/2)."> <span class="keyword">if</span> (isDelimiter(c)) {</a></pre></td></tr> -<tr> <td class="numLineCover"> 217</td> <td class="nbHitsCovered"> 46812</td> <td class="src"><pre class="src"> tkn.type = TOKEN;</pre></td></tr> -<tr> <td class="numLineCover"> 218</td> <td class="nbHitsCovered"> 46812</td> <td class="src"><pre class="src"> <span class="keyword">return</span> tkn;</pre></td></tr> -<tr> <td class="numLineCover"> 219</td> <td class="nbHitsCovered"><a title="Line 219: Conditional coverage 100% (2/2)."> 45543</a></td> <td class="src"><pre class="src"> <a title="Line 219: Conditional coverage 100% (2/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (isEndOfFile(c)) {</a></pre></td></tr> -<tr> <td class="numLineCover"> 220</td> <td class="nbHitsCovered"> 6</td> <td class="src"><pre class="src"> tkn.type = EOF;</pre></td></tr> -<tr> <td class="numLineCover"> 221</td> <td class="nbHitsCovered"> 6</td> <td class="src"><pre class="src"> tkn.isReady = <span class="keyword">true</span>; <span class="comment">// There is data at EOF</span></pre></td></tr> -<tr> <td class="numLineCover"> 222</td> <td class="nbHitsCovered"> 6</td> <td class="src"><pre class="src"> <span class="keyword">return</span> tkn;</pre></td></tr> -<tr> <td class="numLineCover"> 223</td> <td class="nbHitsCovered"><a title="Line 223: Conditional coverage 100% (2/2)."> 45537</a></td> <td class="src"><pre class="src"> <a title="Line 223: Conditional coverage 100% (2/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (readEndOfLine(c)) {</a></pre></td></tr> -<tr> <td class="numLineCover"> 224</td> <td class="nbHitsCovered"> 45528</td> <td class="src"><pre class="src"> tkn.type = EORECORD;</pre></td></tr> -<tr> <td class="numLineCover"> 225</td> <td class="nbHitsCovered"> 45528</td> <td class="src"><pre class="src"> <span class="keyword">return</span> tkn;</pre></td></tr> -<tr> <td class="numLineCover"> 226</td> <td class="nbHitsUncovered"><a title="Line 226: Conditional coverage 50% (1/2)."> 9</a></td> <td class="src"><pre class="src"><span class="srcUncovered"> <a title="Line 226: Conditional coverage 50% (1/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (!isWhitespace(c)) {</a></span></pre></td></tr> +<tr> <td class="numLineCover"> 215</td> <td class="nbHitsCovered"> 185005</td> <td class="src"><pre class="src"> c = in.read();</pre></td></tr> +<tr> <td class="numLineCover"> 216</td> <td class="nbHitsCovered"><a title="Line 216: Conditional coverage 100% (2/2)."> 185005</a></td> <td class="src"><pre class="src"> <a title="Line 216: Conditional coverage 100% (2/2)."> <span class="keyword">if</span> (isDelimiter(c)) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 217</td> <td class="nbHitsCovered"> 94160</td> <td class="src"><pre class="src"> tkn.type = TOKEN;</pre></td></tr> +<tr> <td class="numLineCover"> 218</td> <td class="nbHitsCovered"> 94160</td> <td class="src"><pre class="src"> <span class="keyword">return</span> tkn;</pre></td></tr> +<tr> <td class="numLineCover"> 219</td> <td class="nbHitsCovered"><a title="Line 219: Conditional coverage 100% (2/2)."> 90845</a></td> <td class="src"><pre class="src"> <a title="Line 219: Conditional coverage 100% (2/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (isEndOfFile(c)) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 220</td> <td class="nbHitsCovered"> 12</td> <td class="src"><pre class="src"> tkn.type = EOF;</pre></td></tr> +<tr> <td class="numLineCover"> 221</td> <td class="nbHitsCovered"> 12</td> <td class="src"><pre class="src"> tkn.isReady = <span class="keyword">true</span>; <span class="comment">// There is data at EOF</span></pre></td></tr> +<tr> <td class="numLineCover"> 222</td> <td class="nbHitsCovered"> 12</td> <td class="src"><pre class="src"> <span class="keyword">return</span> tkn;</pre></td></tr> +<tr> <td class="numLineCover"> 223</td> <td class="nbHitsCovered"><a title="Line 223: Conditional coverage 100% (2/2)."> 90833</a></td> <td class="src"><pre class="src"> <a title="Line 223: Conditional coverage 100% (2/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (readEndOfLine(c)) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 224</td> <td class="nbHitsCovered"> 90815</td> <td class="src"><pre class="src"> tkn.type = EORECORD;</pre></td></tr> +<tr> <td class="numLineCover"> 225</td> <td class="nbHitsCovered"> 90815</td> <td class="src"><pre class="src"> <span class="keyword">return</span> tkn;</pre></td></tr> +<tr> <td class="numLineCover"> 226</td> <td class="nbHitsUncovered"><a title="Line 226: Conditional coverage 50% (1/2)."> 18</a></td> <td class="src"><pre class="src"><span class="srcUncovered"> <a title="Line 226: Conditional coverage 50% (1/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (!isWhitespace(c)) {</a></span></pre></td></tr> <tr> <td class="numLine"> 227</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="comment">// error invalid char between token and next delimiter</span></pre></td></tr> <tr> <td class="numLineCover"> 228</td> <td class="nbHitsUncovered"> 0</td> <td class="src"><pre class="src"><span class="srcUncovered"> <span class="keyword">throw</span> <span class="keyword">new</span> IOException(<span class="string">"(line "</span> + getLineNumber() +</span></pre></td></tr> @@ -405,7 +405,7 @@ <td class="src"><pre class="src"> }</pre></td></tr> <tr> <td class="numLine"> 232</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> }</pre></td></tr> -<tr> <td class="numLineCover"> 233</td> <td class="nbHitsUncovered"><a title="Line 233: Conditional coverage 50% (1/2)."> 934507</a></td> <td class="src"><pre class="src"><span class="srcUncovered"> <a title="Line 233: Conditional coverage 50% (1/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (isEndOfFile(c)) {</a></span></pre></td></tr> +<tr> <td class="numLineCover"> 233</td> <td class="nbHitsUncovered"><a title="Line 233: Conditional coverage 50% (1/2)."> 1868826</a></td> <td class="src"><pre class="src"><span class="srcUncovered"> <a title="Line 233: Conditional coverage 50% (1/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (isEndOfFile(c)) {</a></span></pre></td></tr> <tr> <td class="numLine"> 234</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="comment">// error condition (end of file before end of token)</span></pre></td></tr> <tr> <td class="numLineCover"> 235</td> <td class="nbHitsUncovered"> 0</td> <td class="src"><pre class="src"><span class="srcUncovered"> <span class="keyword">throw</span> <span class="keyword">new</span> IOException(<span class="string">"(startline "</span> + startLineNumber +</span></pre></td></tr> @@ -415,7 +415,7 @@ <td class="src"><pre class="src"> } <span class="keyword">else</span> {</pre></td></tr> <tr> <td class="numLine"> 238</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> <span class="comment">// consume character</span></pre></td></tr> -<tr> <td class="numLineCover"> 239</td> <td class="nbHitsCovered"> 934507</td> <td class="src"><pre class="src"> tkn.content.append((<span class="keyword">char</span>) c);</pre></td></tr> +<tr> <td class="numLineCover"> 239</td> <td class="nbHitsCovered"> 1868826</td> <td class="src"><pre class="src"> tkn.content.append((<span class="keyword">char</span>) c);</pre></td></tr> <tr> <td class="numLine"> 240</td> <td class="nbHits"> </td> <td class="src"><pre class="src"> }</pre></td></tr> <tr> <td class="numLine"> 241</td> <td class="nbHits"> </td> @@ -428,6 +428,6 @@ <td class="src"><pre class="src"> }</pre></td></tr> </table> -<div class="footer">Report generated by <a href="http://cobertura.sourceforge.net/" target="_top">Cobertura</a> 1.9.4.1 on 3/21/13 11:16 AM.</div> +<div class="footer">Report generated by <a href="http://cobertura.sourceforge.net/" target="_top">Cobertura</a> 1.9.4.1 on 3/21/13 1:28 PM.</div> </body> </html> \ No newline at end of file