Add more test outlines for process & lsp process of core client

pull/38/head
Chip Senkbeil 3 years ago
parent 07cd434e98
commit fcdd1ebd48
No known key found for this signature in database
GPG Key ID: 35EF1F8EC72A4131

@ -201,3 +201,91 @@ impl RemoteLspStderr {
Ok(out)
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn stdin_write_should_only_send_out_complete_lsp_messages() {
todo!();
}
#[test]
fn stdin_write_should_support_buffering_output_until_a_complete_lsp_message_is_composed() {
// TODO: This tests that we can send part of a message and then the rest later to
// verify that this doesn't block async tasks from continuing
todo!();
}
#[test]
fn stdin_write_should_only_consume_a_complete_lsp_message_even_if_more_is_written() {
todo!();
}
#[test]
fn stdin_write_should_support_sending_out_multiple_lsp_messages_if_all_received_at_once() {
todo!();
}
#[test]
fn stdin_write_should_convert_content_with_distant_scheme_to_file_scheme() {
todo!();
}
#[test]
fn stdout_read_should_yield_lsp_messages_as_strings() {
todo!();
}
#[test]
fn stdout_read_should_only_yield_complete_lsp_messages() {
// TODO: This tests that we can get an incomplete message from an inner read
// and then get the rest of the message (maybe in parts) from a later read
// to verify that this doesn't block async tasks from continuing
todo!();
}
#[test]
fn stdout_read_should_only_consume_a_complete_lsp_message_even_if_more_output_is_available() {
todo!();
}
#[test]
fn stdout_read_should_support_yielding_multiple_lsp_messages_if_all_received_at_once() {
todo!();
}
#[test]
fn stdout_read_should_convert_content_with_file_scheme_to_distant_scheme() {
todo!();
}
#[test]
fn stderr_read_should_yield_lsp_messages_as_strings() {
todo!();
}
#[test]
fn stderr_read_should_only_yield_complete_lsp_messages() {
// TODO: This tests that we can get an incomplete message from an inner read
// and then get the rest of the message (maybe in parts) from a later read
// to verify that this doesn't block async tasks from continuing
todo!();
}
#[test]
fn stderr_read_should_only_consume_a_complete_lsp_message_even_if_more_output_is_available() {
todo!();
}
#[test]
fn stderr_read_should_support_yielding_multiple_lsp_messages_if_all_received_at_once() {
todo!();
}
#[test]
fn stderr_read_should_convert_content_with_file_scheme_to_distant_scheme() {
todo!();
}
}

@ -273,3 +273,73 @@ async fn process_incoming_responses(
result
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn spawn_should_return_bad_response_if_payload_size_unexpected() {
todo!();
}
#[test]
fn spawn_should_return_bad_response_if_did_not_get_a_indicator_that_process_started() {
todo!();
}
#[test]
fn id_should_return_randomly_generated_process_id() {
todo!();
}
#[test]
fn wait_should_wait_for_internal_tasks_to_complete_and_return_process_exit_information() {
todo!();
}
#[test]
fn wait_should_return_error_if_internal_tasks_fail() {
todo!();
}
#[test]
fn abort_should_abort_internal_tasks() {
todo!();
}
#[test]
fn kill_should_return_error_if_internal_tasks_already_completed() {
todo!();
}
#[test]
fn kill_should_send_proc_kill_request_and_then_cause_stdin_forwarding_to_close() {
todo!();
}
#[test]
fn stdin_should_be_forwarded_from_receiver_field() {
todo!();
}
#[test]
fn stdout_should_be_forwarded_to_receiver_field() {
todo!();
}
#[test]
fn stderr_should_be_forwarded_to_receiver_field() {
todo!();
}
#[test]
fn receiving_done_response_should_terminate_internal_tasks() {
todo!();
}
#[test]
fn receiving_done_response_should_result_in_wait_returning_exit_information() {
todo!();
}
}

Loading…
Cancel
Save