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