forked from zed-industries/zed
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add FakeAdapter and FakeTransport for testing purposes (#73)
* Move process to transport struct itself * Add test to make sure we can send request and receive a response * Align other handle methods * Fix issues inside cargo.toml require test features inside the correct *-dependencies * Remove comments that are not needed * Add as_fake instead of downcasting * Clean up * Override get_binary method so we don't fail on install * Fix false positive clippy error This error was a match variant not being covered when the variant wasn't possible dued to a feature flag. I'm pretty sure this is a bug in clippy/rust-analyzer and will open an issue on their repos * Remove not needed clone * Panic when we receive an event/reverse request inside the test * reuse the type of the closure * Add a way to fake receiving events * Oops remove fake event from different test * Clipppyyyy --------- Co-authored-by: Anthony Eid <hello@anthonyeid.me>
- Loading branch information
1 parent
2b8ae36
commit 1a0ecf0
Showing
18 changed files
with
591 additions
and
115 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.