Class CommonStatsCSVHelper

java.lang.Object
edu.ucsb.cs156.happiercows.helpers.CommonStatsCSVHelper

public class CommonStatsCSVHelper extends Object
  • 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 close
      csvPrinter - printer to close
      Throws:
      IOException
    • toCSV

      public static ByteArrayInputStream toCSV(Iterable<CommonStats> lines) throws IOException
      Throws:
      IOException