mirror of
https://github.com/nushell/nushell.git
synced 2025-06-19 17:38:14 +02:00
Fix unused import warning on Linux+Mac (#6281)
This commit is contained in:
parent
4b89c5f900
commit
0e5886ace1
@ -1,4 +1,4 @@
|
|||||||
use nu_test_support::fs::Stub::{EmptyFile, FileWithContent};
|
use nu_test_support::fs::Stub::EmptyFile;
|
||||||
use nu_test_support::playground::Playground;
|
use nu_test_support::playground::Playground;
|
||||||
use nu_test_support::{nu, pipeline};
|
use nu_test_support::{nu, pipeline};
|
||||||
|
|
||||||
@ -265,6 +265,7 @@ fn single_quote_does_not_expand_path_glob_windows() {
|
|||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
#[test]
|
#[test]
|
||||||
fn can_run_batch_files() {
|
fn can_run_batch_files() {
|
||||||
|
use nu_test_support::fs::Stub::FileWithContent;
|
||||||
Playground::setup("run a Windows batch file", |dirs, sandbox| {
|
Playground::setup("run a Windows batch file", |dirs, sandbox| {
|
||||||
sandbox.with_files(vec![FileWithContent(
|
sandbox.with_files(vec![FileWithContent(
|
||||||
"foo.cmd",
|
"foo.cmd",
|
||||||
@ -282,6 +283,7 @@ fn can_run_batch_files() {
|
|||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
#[test]
|
#[test]
|
||||||
fn can_run_batch_files_without_cmd_extension() {
|
fn can_run_batch_files_without_cmd_extension() {
|
||||||
|
use nu_test_support::fs::Stub::FileWithContent;
|
||||||
Playground::setup(
|
Playground::setup(
|
||||||
"run a Windows batch file without specifying the extension",
|
"run a Windows batch file without specifying the extension",
|
||||||
|dirs, sandbox| {
|
|dirs, sandbox| {
|
||||||
@ -302,6 +304,7 @@ fn can_run_batch_files_without_cmd_extension() {
|
|||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
#[test]
|
#[test]
|
||||||
fn can_run_batch_files_without_bat_extension() {
|
fn can_run_batch_files_without_bat_extension() {
|
||||||
|
use nu_test_support::fs::Stub::FileWithContent;
|
||||||
Playground::setup(
|
Playground::setup(
|
||||||
"run a Windows batch file without specifying the extension",
|
"run a Windows batch file without specifying the extension",
|
||||||
|dirs, sandbox| {
|
|dirs, sandbox| {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user