class Qsv < Formula desc "Ultra-fast CSV data-wrangling toolkit" homepage "https://github.com/jqnatividad/qsv" url "https://github.com/jqnatividad/qsv/archive/0.58.2.tar.gz" sha256 "9bc0a6763805dcfd7ebcd3e26c61444e4992c50b01cd12a30f9bee147b82e8b0" license any_of: ["MIT", "Unlicense"] head "https://github.com/jqnatividad/qsv.git", branch: "master" depends_on "rust" => :build def install system "cargo", "install", *std_cargo_args, "--features", "full" end test do (testpath/"test.csv").write("first header,second header") assert_equal <<~EOS, shell_output("#{bin}/qsv stats test.csv") field,type,sum,min,max,min_length,max_length,mean,stddev,variance,nullcount first header,NULL,,,,,,,,,0 second header,NULL,,,,,,,,,0 EOS end end