Class CommonStatsCSVHelper
java.lang.Object
edu.ucsb.cs156.happiercows.helpers.CommonStatsCSVHelper
-
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 pitest issue; it isn't possible to exclude an individual method call from pitest coverage, but we can exclude the entire method by name in the pitest settings in pom.xmlstatic ByteArrayInputStream
toCSV
(Iterable<CommonStats> lines)
-
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 pitest issue; it isn't possible to exclude an individual method call from pitest coverage, but we can exclude the entire method by name in the pitest settings in pom.xml- Parameters:
out
- stream to closecsvPrinter
- printer to close- Throws:
IOException
-
toCSV
- Throws:
IOException
-