aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/fakes.rs (follow)
Commit message (Collapse)AuthorAge
* chore(tests): move all integration tests to be either unit or e2e tests - ↵Aram Drevekenin2021-06-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | remove old testing infra (#589) * tests(integration): move basic integration tests to be unit tests * fix(tests): silently fail threadbus for tests * tests(unit): move compatibility tests to become unit tests for grid * tests(unit): move close_pane tests to become unit tests for grid * tests(e2e): move basic layout test to e2e * tests(unit): move move_focus tests to be unit tests * tests(unit): move resize_down tests to be unit tests * tests(unit): move resize_left tests to be unit tests * tests(unit): move resize_right tests to be unit tests * tests(unit): move resize_up tests to be unit tests * tests(infra): remove unused infra * style(fmt): make rustfmt happy * debug * debug * debug * debug * chore(test): shift volume mounting around because github actions is a special child
* refactors for #525 (#534)kxt2021-05-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refactor(fakes): clean up add_terminal_input * refactor(fakes): append whole buf to output_buffer in FakeStdoutWriter::write * refactor(fakes): append whole buf to output_buffer in FakeInputOutput::write_to_tty_stdin * fix(fakes): allow partial reads in read_from_tty_stdout This patch fixes two bugs in read_from_tty_stdout: * if there was a partial read (ie. `bytes.read_position` is not 0 but less than `bytes.content.len()`), subsequent calls to would fill `buf` starting at index `bytes.read_position` instead of 0, leaving range 0..`bytes.read_position` untouched. * if `buf` was smaller than `bytes.content.len()`, a panic would occur. * refactor(channels): use crossbeam instead of mpsc This patch replaces mpsc with crossbeam channels because crossbeam supports selecting on multiple channels which will be necessary in a subsequent patch. * refactor(threadbus): allow multiple receivers in Bus This patch changes Bus to use multiple receivers. Method `recv` returns data from all of them. This will be used in a subsequent patch for receiving from bounded and unbounded queues at the same time. * refactor(channels): remove SenderType enum This enum has only one variant, so the entire enum can be replaced with the innards of said variant. * refactor(channels): remove Send+Sync trait implementations The implementation of these traits is not necessary, as SenderWithContext is automatically Send and Sync for every T and ErrorContext that's Send and Sync.
* Merge pull request #531 from zellij-org/detach-sessionsKunal Mohan2021-05-25
|\ | | | | Feature: Detachable/Persistent sessions
| * Add ability to attach to sessionsKunal Mohan2021-05-22
| |
| * Add ability to detach a sessionKunal Mohan2021-05-22
| |
* | fix(pty): use async io to avoid polling (#523)kxt2021-05-24
|/ | | | This patch fixes #509 by using async read instead of polling a non-blocking fd. This reduces CPU usage when the ptys are idle.
* Merge pull request #522 from zellij-org/re-export-dependenciesKunal Mohan2021-05-19
|\ | | | | Re-export common dependencies from zellij-utils
| * Re-export common dependencies from zellij-utilsKunal Mohan2021-05-19
| |
* | refactor(IO): random fixes (#521)kxt2021-05-18
|/ | | | | | | | | | | | * refactor(os_input_output): use Pid for child process * fix(debug): change debug_to_file to write &[u8] This patch changes debug_to_file to write entire slices in one call, to avoid the overhead of opening and closing files for each byte written. * refactor(ServerOsApi): remove unnecessary muts from methods Co-authored-by: KOVACS Tamas <ktamas@fastmail.fm>
* Osc implementation (#517)Aram Drevekenin2021-05-17
| | | | | | | | | | | | | * fix(compatibility): implement most osc methods * style(fmt): rustfmt * style(fmt): remove cargo warnings * style(fmt): make clippy happy * style(fmt): fix formatting after my clippy fixes broke it again ;P * fix(grid): fix tests
* Big refactor: separate crates for client, server and utilitiesKunal Mohan2021-05-16
|
* clean and exit on window closeKunal Mohan2021-05-15
|
* Use ClientToServerMsg and ServerToClientMsg for IPCKunal Mohan2021-05-15
|
* Fix memory overflow error and add panic hook for serverKunal Mohan2021-05-15
|
* Switch to multiprocess model: Not looking goodKunal Mohan2021-05-15
|
* First round of merging against server-client and color stuffKyle Sutherland-Cash2021-05-08
|
* Fix after rebaseKunal Mohan2021-05-04
|
* Fix after rebaseKunal Mohan2021-05-04
|
* use better names for senders, receivers and threadsKunal Mohan2021-05-04
|
* Refactor CommandIsExecuting to have a single variantKunal Mohan2021-05-04
|
* Use interprocess crate for IPCKunal Mohan2021-05-04
|
* Remove ErrorContext from IpcSender and nit fixesKunal Mohan2021-05-04
|
* Fix after rebaseKunal Mohan2021-05-04
|
* fix terminal window resize tests by restricting lifetime of locksKunal Mohan2021-05-04
|
* Fix after rebaseKunal Mohan2021-05-04
|
* Move screen and plugins to client side.Kunal Mohan2021-05-04
| | | | | Remove AppInstruction enum spawn pty thread, screen thread and plugin thread on demand
* client side threads should send messages directly to server and router ↵Kunal Mohan2021-05-04
| | | | threads should do the actual routing
* split start into start_server and start_clientKunal Mohan2021-05-04
|
* Rename notify_server to connect_to_serverKunal Mohan2021-05-04
|
* Add router thread on server side as wellKunal Mohan2021-05-04
|
* Some documentation an ClientOsApi stuffKunal Mohan2021-05-04
|
* a probable fix for testsKunal Mohan2021-05-04
|
* minor fix while opening new tabKunal Mohan2021-05-04
|
* Hide IpcChannel entirely behind OsApiKunal Mohan2021-05-04
|
* Hide server-side Ipc channels creation behind OsApis and some documentation ↵Kunal Mohan2021-05-04
| | | | fixes
* increase snapshot timeKunal Mohan2021-05-04
|
* fix fmt errorsKunal Mohan2021-05-04
|
* Fix after rebaseKunal Mohan2021-05-04
|
* fix testsKunal Mohan2021-05-04
|
* Divide OsApi into ClientOsApi and ServerOsApi and move calls to os threadKunal Mohan2021-05-04
|
* fix testing for pseudo client-server modelKunal Mohan2021-05-04
|
* fix(colors): stabilize colors (#453)Aram Drevekenin2021-05-04
| | | | | * fix(colors): stabilize colors * style(fmt): rustfmt
* chore: cleanup, fix: the tests finally passdenis2021-05-01
|
* * fix(ui): react to terminal window size changes (SIGWINCH) (#245)Aram Drevekenin2021-04-01
| | | | | | | | | * fix(ui): react to terminal window size changes (SIGWINCH) * style(fmt): rustfmt * style(format): remove some warnings * style(fmt): rustfmt
* Performance: only render panes that should be updated (#234)Aram Drevekenin2021-03-16
| | | | | * fix(performance): bring back should_render * style(fmt): rustfmt
* refactor(input): hotkeys (#132)Kyle Sutherland-Cash2021-02-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Initial definitions and thoughts for hotkeys * Actually document InputKey properly * Add a to string function for input keys * Define keybinds and actions; restructure * Implement hash and start on defining key bindings * Derive Serialize for input keys * Store the key strings as tuples for two-way mapping * Some string to key functions * Use termion's Key definition and implement action dispatch * Fix some borrow-checker errors * Missing keybind and command mode switching * Fix incorrect handling of spawn terminal command * fix(plugins): work with new input - tests not passing * fix(infra): stabilize tests and properly close pty sessions * style(fmt): rustfmt Co-authored-by: Brooks J Rady <b.j.rady@gmail.com> Co-authored-by: Aram Drevekenin <aram@poor.dev>
* Min max height and width (#155)Aram Drevekenin2021-01-28
| | | | | * feat(tab): min/max pane height * style(fmt): rustfmt
* Get clipped, foolBrooks J Rady2021-01-06
|
* A module rename to please clippyBrooks J Rady2021-01-06
|
* fix(compatibility): fix neovim change mode (#108)Aram Drevekenin2020-12-17
|