mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 15:49:44 -05:00
Remove dead code: itest_ignore (#8668)
This commit is contained in:
parent
9bff85836c
commit
f15b3d84a5
1 changed files with 14 additions and 31 deletions
|
@ -7,6 +7,20 @@ use std::process::Command;
|
||||||
use tempfile::TempDir;
|
use tempfile::TempDir;
|
||||||
use test_util as util;
|
use test_util as util;
|
||||||
|
|
||||||
|
macro_rules! itest(
|
||||||
|
($name:ident {$( $key:ident: $value:expr,)*}) => {
|
||||||
|
#[test]
|
||||||
|
fn $name() {
|
||||||
|
(util::CheckOutputIntegrationTest {
|
||||||
|
$(
|
||||||
|
$key: $value,
|
||||||
|
)*
|
||||||
|
.. Default::default()
|
||||||
|
}).run()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn std_tests() {
|
fn std_tests() {
|
||||||
let dir = TempDir::new().expect("tempdir fail");
|
let dir = TempDir::new().expect("tempdir fail");
|
||||||
|
@ -2066,37 +2080,6 @@ fn deno_test_no_color() {
|
||||||
assert!(out.contains("test result: FAILED. 1 passed; 1 failed; 1 ignored; 0 measured; 0 filtered out"));
|
assert!(out.contains("test result: FAILED. 1 passed; 1 failed; 1 ignored; 0 measured; 0 filtered out"));
|
||||||
}
|
}
|
||||||
|
|
||||||
macro_rules! itest(
|
|
||||||
($name:ident {$( $key:ident: $value:expr,)*}) => {
|
|
||||||
#[test]
|
|
||||||
fn $name() {
|
|
||||||
(util::CheckOutputIntegrationTest {
|
|
||||||
$(
|
|
||||||
$key: $value,
|
|
||||||
)*
|
|
||||||
.. Default::default()
|
|
||||||
}).run()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
// Unfortunately #[ignore] doesn't work with itest!
|
|
||||||
#[allow(unused)]
|
|
||||||
macro_rules! itest_ignore(
|
|
||||||
($name:ident {$( $key:ident: $value:expr,)*}) => {
|
|
||||||
#[ignore]
|
|
||||||
#[test]
|
|
||||||
fn $name() {
|
|
||||||
(util::CheckOutputIntegrationTest {
|
|
||||||
$(
|
|
||||||
$key: $value,
|
|
||||||
)*
|
|
||||||
.. Default::default()
|
|
||||||
}).run()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
itest!(_001_hello {
|
itest!(_001_hello {
|
||||||
args: "run --reload 001_hello.js",
|
args: "run --reload 001_hello.js",
|
||||||
output: "001_hello.js.out",
|
output: "001_hello.js.out",
|
||||||
|
|
Loading…
Reference in a new issue