diff options
author | Matan Kushner <hello@matchai.me> | 2019-04-15 20:54:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-15 20:54:52 -0400 |
commit | 794ae7b2ad3d79009162fa7f2d4fe24997f7c2d1 (patch) | |
tree | 8a60c56f3092c1c21844bd5d842b4b328b67c6ea /src/modules/line_break.rs | |
parent | ab5490bea691d6c5fbe525a54799c17d4bd76dca (diff) |
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
Diffstat (limited to 'src/modules/line_break.rs')
-rw-r--r-- | src/modules/line_break.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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<Segment> { +pub fn segment(_current_dir: &Path, _args: &ArgMatches) -> Option<Segment> { const LINE_ENDING: &str = "\n"; let mut segment = Segment::new("line_break"); |