Class ReportCSVHelper
java.lang.Object
edu.ucsb.cs156.happiercows.helpers.ReportCSVHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
flush_and_close_noPitest
(ByteArrayOutputStream out, org.apache.commons.csv.CSVPrinter csvPrinter) This method is a hack to avoid a jacoco issue; it isn't possible to exclude an individual method call from jacoco coverage, but we can exclude the entire method.static ByteArrayInputStream
toCSV
(Iterable<ReportLine> lines)
-
Constructor Details
-
ReportCSVHelper
public ReportCSVHelper()
-
-
Method Details
-
flush_and_close_noPitest
public static void flush_and_close_noPitest(ByteArrayOutputStream out, org.apache.commons.csv.CSVPrinter csvPrinter) throws IOException This method is a hack to avoid a jacoco issue; it isn't possible to exclude an individual method call from jacoco coverage, but we can exclude the entire method.- Parameters:
out
-- Throws:
IOException
-
toCSV
- Throws:
IOException
-