summaryrefslogtreecommitdiffstats
path: root/src/process/tests.rs
AgeCommit message (Collapse)Author
2024-02-19Reenable the unused lint, and cleanup unusedTim Oram
2024-02-15Move remaining testutils to test_helpersTim Oram
2024-02-15Move runtime testutils to test_helpersTim Oram
2024-02-15Remove the concept of custom eventsTim Oram
Due to the input module previously being a separate crate, it needed to support dynamic application level event bindings. This created a lot of complexity in the event handling, with no value. This removes that custom functionality, and instead includes all the app level events under the standard events.
2024-02-15Move core crate into rootTim Oram
2021-07-05Move process module into coreTim Oram
2021-07-05Move process_module_test to module and renameTim Oram
2021-07-05Use mocked theme in process testsTim Oram
2021-07-05Move view module to crateTim Oram
2021-07-05Move input module to crateTim Oram
2021-07-05Move display module into a crateTim Oram
2021-06-20Breakout the module system from the process moduleTim Oram
This decouples the module system from the process module, this allows other modules to not depend on the process module, which really should not be depended on by the other modules.
2021-06-19Rename ProcessModule to ModuleTim Oram
2021-06-19Move error to a moduleTim Oram
2021-06-19Move window_size_error to a moduleTim Oram
2021-06-17Remove modules creation from process moduleTim Oram
Move the initialization of the different modules from the process module and instead do the initialization in the main function.
2021-06-17Remove unneeded type from process module testsTim Oram
The process TestContext type was not needed on the closures, so this removes it.
2021-06-17Remove public module refs from the todo_file moduleTim Oram
2021-06-16Add Tui trait for CrossTerm and mocked versionTim Oram
2021-06-15Remove public module refs from display moduleTim Oram
2021-06-15Refactor CLI and main functionTim Oram
This replaces the CLI argument parsing with a lighter library and drops the need for the heavy Clap library. Most of the main function code is also moved into a new core module, and additional lighter tests are added. A build.rs file has also been added to provide a more detailed version info output.
2021-06-12Remove ViewStateTim Oram
The ViewState is no longer used in the tests and can be safely removed.
2021-06-12Rework process testsTim Oram
Add to the process tests a function to create an instance of CrossTerm, this way changes to how CrossTerm is initialized require fewer modifications in the future.
2021-06-12Remove references from Display and ViewTim Oram
Move the ownership of Crossterm into the Display struct and inject the config values into View.
2021-06-12Refactor external editor command runningTim Oram
Move the triggering of the external command to the process module and refactor external editor to use it instead. This also allows the view to be removed from all modules.
2021-06-12Convert from inputs to eventsTim Oram
2021-06-12Move input reading from viewTim Oram
2021-06-12Avoid view_data resize in modulesTim Oram
Instead of having every module perform a resize of the view_data, return a mutable reference and have the view do a resize in all cases where possible.
2021-03-23Componentize the help systemTim Oram
This moves the help system out of the process module and into a reusable component.
2021-02-18Remove references to the lines vecTim Oram
The internal Vec<Line> containing the lines list was an escape hatch to allow the addition of some functionality. It should be an internal implementation detail and should not be accessible. So this change: - Add is_empty function to check if there are no lines - Add iter for iteration over the lines - Add get_line function to get a line at index - Add get_maximum_line_index to replace calls getting the length - Add get_lines_owned which returns a owned copy of the lines
2021-02-04Update rustfmt configuration with new optionsTim Oram
Re-evaluate the configurations for rustfmt, make some changes and reformat everything. The biggest change is how imports are formatted.
2021-01-27Rewrite display and input to use CrosstermTim Oram
The project has pushed the limits of what curses can support on Windows systems. Crossterm has far superior support for creating cross platform TUI applications.
2021-01-27Add mutable to cursesTim Oram
2020-11-23Add tests for process moduleTim Oram