Addtional test for more coverage
@@ -1007,6 +1007,21 @@ func TestMinifiedGeneratedCheck(t *testing.T) {
}
}
+func TestMinifiedGeneratedCheckTwoLines(t *testing.T) {
+ fileJob := FileJob{
+ Language: "Go",
+ }
+
+ fileJob.Content = []byte("1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890ABCDEF\n1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890ABCDEF")
+ MinifiedGenerated = true
+ CountStats(&fileJob)
+ MinifiedGenerated = false
+
+ if fileJob.Minified != true {
+ t.Error("Expected minified to come back true")
+ }
+}
+
func TestMinifiedGeneratedCheckEdge(t *testing.T) {
fileJob := FileJob{
Language: "Go",
