mirror of
https://github.com/FliegendeWurst/ripgrep-all.git
synced 2024-11-24 12:24:56 +00:00
fix tests
This commit is contained in:
parent
2e1c74909e
commit
616c0a560b
@ -343,14 +343,11 @@ PREFIX:\u{c}
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
use std::io::Cursor;
|
|
||||||
|
|
||||||
use super::*;
|
|
||||||
use crate::adapters::FileAdapter;
|
|
||||||
use crate::{
|
use crate::{
|
||||||
adapters::custom::CustomAdapterConfig,
|
adapters::custom::CustomAdapterConfig,
|
||||||
test_utils::{adapted_to_vec, simple_adapt_info},
|
test_utils::{adapted_to_vec, simple_adapt_info},
|
||||||
};
|
};
|
||||||
|
use std::io::Cursor;
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn streaming() -> anyhow::Result<()> {
|
async fn streaming() -> anyhow::Result<()> {
|
||||||
@ -365,6 +362,7 @@ PREFIX:\u{c}
|
|||||||
match_only_by_mime: None,
|
match_only_by_mime: None,
|
||||||
binary: "sed".to_string(),
|
binary: "sed".to_string(),
|
||||||
args: vec!["s/e/u/g".to_string()],
|
args: vec!["s/e/u/g".to_string()],
|
||||||
|
output_path_hint: None,
|
||||||
};
|
};
|
||||||
|
|
||||||
let adapter = adapter.to_adapter();
|
let adapter = adapter.to_adapter();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use anyhow::Context;
|
use anyhow::Context;
|
||||||
use rga::adapters::spawning::map_exe_error;
|
use rga::adapters::custom::map_exe_error;
|
||||||
use ripgrep_all as rga;
|
use ripgrep_all as rga;
|
||||||
|
|
||||||
use std::process::{Command, Stdio};
|
use std::process::{Command, Stdio};
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use rga::adapters::spawning::map_exe_error;
|
use rga::adapters::custom::map_exe_error;
|
||||||
use rga::adapters::*;
|
use rga::adapters::*;
|
||||||
use rga::config::{split_args, RgaConfig};
|
use rga::config::{split_args, RgaConfig};
|
||||||
use rga::matching::*;
|
use rga::matching::*;
|
||||||
|
Loading…
Reference in New Issue
Block a user