From 794ae7b2ad3d79009162fa7f2d4fe24997f7c2d1 Mon Sep 17 00:00:00 2001 From: Matan Kushner Date: Mon, 15 Apr 2019 20:54:52 -0400 Subject: Add integration tests (#6) ### Changed - Added current_dir param to segments to make them more testable - Moved all existing integration tests to a `tests/` dir ### Added - A whole bunch of new integration tests --- src/modules/line_break.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules/line_break.rs') diff --git a/src/modules/line_break.rs b/src/modules/line_break.rs index ed8b5023d..a7bda251e 100644 --- a/src/modules/line_break.rs +++ b/src/modules/line_break.rs @@ -1,8 +1,9 @@ use super::Segment; use clap::ArgMatches; +use std::path::Path; /// Creates a segment for the line break -pub fn segment(_: &ArgMatches) -> Option { +pub fn segment(_current_dir: &Path, _args: &ArgMatches) -> Option { const LINE_ENDING: &str = "\n"; let mut segment = Segment::new("line_break"); -- cgit v1.2.3