Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed May 12, 2021
1 parent 806df1b commit 6e6f4ac
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 10 deletions.
3 changes: 2 additions & 1 deletion git-transport/tests/blocking-transport-http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ pub fn fixture_bytes(path: &str) -> Vec<u8> {
std::fs::read(fixture_path(path)).expect("fixture to be present and readable")
}

mod client;
#[cfg(feature = "http-client-curl")]
mod client_blocking_http;
6 changes: 3 additions & 3 deletions git-transport/tests/blocking-transport.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::path::PathBuf;

pub type Error = Box<dyn std::error::Error>;
pub type Result = std::result::Result<(), Error>;
pub type Result = std::result::Result<(), Box<dyn std::error::Error>>;

pub fn fixture_bytes(path: &str) -> Vec<u8> {
fn fixture_path(path: &str) -> PathBuf {
Expand All @@ -10,4 +9,5 @@ pub fn fixture_bytes(path: &str) -> Vec<u8> {
std::fs::read(fixture_path(path)).expect("fixture to be present and readable")
}

mod client;
#[cfg(not(feature = "http-client-curl"))]
mod client_blocking;
6 changes: 0 additions & 6 deletions git-transport/tests/client/mod.rs

This file was deleted.

File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions git-transport/tests/client_blocking/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mod capabilities;
mod git;
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions git-transport/tests/client_blocking_http/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mod http;

0 comments on commit 6e6f4ac

Please sign in to comment.