diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-05-09 12:32:01 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-05-16 09:04:38 -0400 |
commit | 79979c272d6daa876ffb3dbad7a6550c22155c8c (patch) | |
tree | 30baf82bd2892ffb73bfd3f6dab6ce21b6ae6ebd /src/tests/mod.rs | |
parent | 21537d6eb8f07d6c1e71c757fb8f0fd583449219 (diff) |
Hunk highlighting test and refactoring
- New command-line option --syntax highlight to select which category
of hunk lines to be syntax highlighted. --highlight-removed is now
deprecated.
- New hunk highlighting test tests syntax highlighting and background colors
- Refactor: construction of style modifiers for config struct
- Refactor: compute minus and plus foreground style sections separately
- Refactor: foreground style logic
- Refactor: rearrange style modifier construction for config
- Refactor: change variable name: => highlight_minus_lines
- Refactor: clean up --color-only config implementation
Diffstat (limited to 'src/tests/mod.rs')
-rw-r--r-- | src/tests/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/mod.rs b/src/tests/mod.rs new file mode 100644 index 00000000..afa09977 --- /dev/null +++ b/src/tests/mod.rs @@ -0,0 +1,4 @@ +pub mod ansi_test_utils; +pub mod integration_test_utils; +pub mod test_example_diffs; +pub mod test_hunk_highlighting; |