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
1212
1313 mod v1 {
1414 mod from_line_reader {
15− use crate::fetch::response::{id, mock_reader};
15+ use std::io::Read;
16+
1617 use git_protocol::fetch::{
1718 self,
1819 response::{Acknowledgement, ShallowUpdate},
1920 };
2021 use git_transport::Protocol;
21− use std::io::Read;
22+
23+ use crate::fetch::response::{id, mock_reader};
2224
2325 #[test]
2426 fn clone() -> crate::Result {
@@ -104,12 +106,15 @@ mod v1 { · 79 unmodified lines
104106 }
105107 mod v2 {
106108 mod from_line_reader {
107− use crate::fetch::response::{id, mock_reader};
108− use git_protocol::fetch::response::ShallowUpdate;
109− use git_protocol::fetch::{self, response::Acknowledgement};
109+ use std::{io, io::Read};
110+
111+ use git_protocol::fetch::{
112+ self,
113+ response::{Acknowledgement, ShallowUpdate},
114+ };
110115 use git_transport::Protocol;
111− use std::io;
112− use std::io::Read;
116+
117+ use crate::fetch::response::{id, mock_reader};
113118
114119 #[test]
115120 fn clone() -> crate::Result {