…into async-io, as usual.
Showing the changes to git-protocol/tests (1 of 12 files). Show all
Unified · Split
| @@ -12,13 +12,15 @@ fn id(hex: &str) -> git_hash::ObjectId { · 11 unmodified lines | |||
| 12 | 12 | ||
| 13 | mod v1 { | 13 | mod 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 | } |
| 105 | mod v2 { | 107 | mod 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 { |