Skip to content

Commit

Permalink
resolve all unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
boyter committed Dec 14, 2021
1 parent 44fa434 commit ab223ce
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 78 deletions.
3 changes: 2 additions & 1 deletion LANGUAGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Alchemist (crn)
Alex (x)
Alloy (als)
Android Interface Definition Language (aidl)
APL (apl,aplf,apln,aplc)
Arvo (avdl,avpr,avsc)
AsciiDoc (adoc)
ASP (asa,asp)
Expand All @@ -30,7 +31,7 @@ C (c,ec,pgc)
C Header (h)
C Shell (csh,.cshrc)
C# (cs,csx)
C++ (cc,cpp,cxx,c++,pcc)
C++ (cc,cpp,cxx,c++,pcc,ino)
C++ Header (hh,hpp,hxx,inl,ipp)
Cabal (cabal)
Cassius (cassius)
Expand Down
130 changes: 56 additions & 74 deletions SCC-OUTPUT-REPORT.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
</tr></thead>
<tbody><tr>
<th>Go</th>
<th>43</th>
<th>8670</th>
<th>1437</th>
<th>404</th>
<th>6829</th>
<th>1377</th>
<th>337105</th>
<th>36</th>
<th>8881</th>
<th>1427</th>
<th>421</th>
<th>7033</th>
<th>1416</th>
<th>349702</th>
</tr><tr>
<th>Java</th>
<th>24</th>
Expand All @@ -39,20 +39,20 @@
</tr><tr>
<th>Markdown</th>
<th>11</th>
<th>1282</th>
<th>312</th>
<th>1338</th>
<th>319</th>
<th>0</th>
<th>970</th>
<th>1019</th>
<th>0</th>
<th>52379</th>
<th>54198</th>
</tr><tr>
<th>Python</th>
<th>10</th>
<th>368</th>
<th>31</th>
<th>198</th>
<th>139</th>
<th>53</th>
<th>21</th>
<th>26</th>
<th>321</th>
<th>27</th>
<th>10706</th>
</tr><tr>
<th>CSS</th>
Expand All @@ -74,13 +74,13 @@
<th>3425</th>
</tr><tr>
<th>YAML</th>
<th>5</th>
<th>482</th>
<th>4</th>
<th>78</th>
<th>13</th>
<th>21</th>
<th>448</th>
<th>20</th>
<th>45</th>
<th>0</th>
<th>7372</th>
<th>2153</th>
</tr><tr>
<th>gitignore</th>
<th>4</th>
Expand All @@ -95,37 +95,19 @@
<th>3</th>
<th>1084</th>
<th>144</th>
<th>86</th>
<th>854</th>
<th>94</th>
<th>39018</th>
<th>85</th>
<th>855</th>
<th>95</th>
<th>39017</th>
</tr><tr>
<th>C#</th>
<th>2</th>
<th>623</th>
<th>83</th>
<th>130</th>
<th>410</th>
<th>45</th>
<th>58</th>
<th>73</th>
<th>492</th>
<th>26</th>
<th>19739</th>
</tr><tr>
<th>HTML</th>
<th>2</th>
<th>1216</th>
<th>0</th>
<th>0</th>
<th>1216</th>
<th>0</th>
<th>17758</th>
</tr><tr>
<th>JSON</th>
<th>2</th>
<th>7230</th>
<th>0</th>
<th>0</th>
<th>7230</th>
<th>0</th>
<th>110403</th>
</tr><tr>
<th>JavaServer Pages</th>
<th>2</th>
Expand Down Expand Up @@ -252,15 +234,6 @@
<th>1</th>
<th>0</th>
<th>6</th>
</tr><tr>
<th>CSV</th>
<th>1</th>
<th>66</th>
<th>0</th>
<th>0</th>
<th>66</th>
<th>0</th>
<th>1754</th>
</tr><tr>
<th>Clojure</th>
<th>1</th>
Expand Down Expand Up @@ -396,6 +369,24 @@
<th>10</th>
<th>0</th>
<th>245</th>
</tr><tr>
<th>HTML</th>
<th>1</th>
<th>608</th>
<th>0</th>
<th>0</th>
<th>608</th>
<th>0</th>
<th>8879</th>
</tr><tr>
<th>JSON</th>
<th>1</th>
<th>7372</th>
<th>0</th>
<th>0</th>
<th>7372</th>
<th>0</th>
<th>102679</th>
</tr><tr>
<th>Korn Shell</th>
<th>1</th>
Expand Down Expand Up @@ -477,15 +468,6 @@
<th>0</th>
<th>0</th>
<th>0</th>
</tr><tr>
<th>SQL</th>
<th>1</th>
<th>204</th>
<th>0</th>
<th>0</th>
<th>204</th>
<th>0</th>
<th>23687</th>
</tr><tr>
<th>Sieve</th>
<th>1</th>
Expand Down Expand Up @@ -553,9 +535,9 @@
<th>Wren</th>
<th>1</th>
<th>188</th>
<th>26</th>
<th>37</th>
<th>125</th>
<th>22</th>
<th>35</th>
<th>131</th>
<th>8</th>
<th>3544</th>
</tr><tr>
Expand Down Expand Up @@ -597,12 +579,12 @@
</tr></tbody>
<tfoot><tr>
<th>Total</th>
<th>184</th>
<th>27286</th>
<th>3043</th>
<th>1964</th>
<th>22279</th>
<th>2368</th>
<th>1832430</th>
<th>172</th>
<th>26413</th>
<th>3001</th>
<th>1748</th>
<th>21664</th>
<th>2363</th>
<th>1799582</th>
</tr></tfoot>
</table></body></html>
4 changes: 2 additions & 2 deletions processor/constants.go

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions processor/formatters_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,7 @@ func TestToOpenMetricsMultiple(t *testing.T) {
Binary: false,
}
close(inputChan)
Files = false
Debug = true // Increase coverage slightly
res := toOpenMetrics(inputChan)
Debug = false
Expand Down Expand Up @@ -734,6 +735,7 @@ func TestToSQLSingle(t *testing.T) {
Binary: false,
}
close(inputChan)
Files = false
Debug = true // Increase coverage slightly
res := toSql(inputChan)
Debug = false
Expand Down Expand Up @@ -914,6 +916,7 @@ func TestFileSummarizeOpenMetrics(t *testing.T) {
}

close(inputChan)
Files = false
Format = "OpenMetrics"
More = false
res := fileSummarize(inputChan)
Expand Down
1 change: 1 addition & 0 deletions processor/processor_unix.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build linux || darwin
// +build linux darwin

// SPDX-License-Identifier: MIT OR Unlicense
Expand Down
1 change: 1 addition & 0 deletions processor/processor_unix_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build linux || darwin
// +build linux darwin

// SPDX-License-Identifier: MIT OR Unlicense
Expand Down
1 change: 0 additions & 1 deletion processor/workers.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,6 @@ func CountStats(fileJob *FileJob) {
// TODO needs to be set via langFeatures.Quotes[0].IgnoreEscape for the matching feature
ignoreEscape := false


for index := checkBomSkip(fileJob); index < int(fileJob.Bytes); index++ {
// Based on our current state determine if the state should change by checking
// what the character is. The below is very CPU bound so need to be careful if
Expand Down

0 comments on commit ab223ce

Please sign in to comment.