History

[git-protocol] move everything into `blocking_io` for later translation…

…into async-io, as usual.

Sebastian Thiel committed 5 years ago

Commit fa033741 parent 0d39b5d12 files · +295 −254Browse files

Showing the changes to git-protocol/tests (1 of 12 files). Show all

Unified · Split

git-protocol/tests/fetch/blocking_io/response.rs+12−7
@@ -12,13 +12,15 @@ fn id(hex: &str) -> git_hash::ObjectId { · 11 unmodified lines
12 12
13mod v1 {13mod v1 {
14 mod from_line_reader {14 mod from_line_reader {
15 use crate::fetch::response::{id, mock_reader};15 use std::io::Read;
16
16 use git_protocol::fetch::{17 use git_protocol::fetch::{
17 self,18 self,
18 response::{Acknowledgement, ShallowUpdate},19 response::{Acknowledgement, ShallowUpdate},
19 };20 };
20 use git_transport::Protocol;21 use git_transport::Protocol;
21 use std::io::Read;22
23 use crate::fetch::response::{id, mock_reader};
22 24
23 #[test]25 #[test]
24 fn clone() -> crate::Result {26 fn clone() -> crate::Result {
@@ -104,12 +106,15 @@ mod v1 { · 79 unmodified lines
104}106}
105mod v2 {107mod v2 {
106 mod from_line_reader {108 mod from_line_reader {
107 use crate::fetch::response::{id, mock_reader};109 use std::{io, io::Read};
108 use git_protocol::fetch::response::ShallowUpdate;110
109 use git_protocol::fetch::{self, response::Acknowledgement};111 use git_protocol::fetch::{
112 self,
113 response::{Acknowledgement, ShallowUpdate},
114 };
110 use git_transport::Protocol;115 use git_transport::Protocol;
111 use std::io;116
112 use std::io::Read;117 use crate::fetch::response::{id, mock_reader};
113 118
114 #[test]119 #[test]
115 fn clone() -> crate::Result {120 fn clone() -> crate::Result {