mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 14:54:15 +00:00
Remove #[macro_use]
from tests
This commit is contained in:
parent
81b8bdd7fc
commit
1055bbe4aa
5 changed files with 5 additions and 20 deletions
|
@ -1,10 +1,6 @@
|
|||
#[macro_use]
|
||||
extern crate clap;
|
||||
extern crate regex;
|
||||
|
||||
include!("../clap-test.rs");
|
||||
|
||||
use clap::{App, AppSettings, Arg, ArgGroup, ArgSettings, ErrorKind};
|
||||
use clap::{App, AppSettings, Arg, ArgGroup, ArgSettings, ErrorKind, clap_app};
|
||||
|
||||
static REQUIRE_DELIM_HELP: &str = "test 1.3
|
||||
Kevin K.
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
#[macro_use]
|
||||
extern crate clap;
|
||||
|
||||
use clap::ErrorKind;
|
||||
use clap::{arg_enum, clap_app, ErrorKind};
|
||||
|
||||
#[test]
|
||||
fn basic() {
|
||||
|
|
|
@ -1,13 +1,9 @@
|
|||
#[macro_use]
|
||||
extern crate clap;
|
||||
extern crate regex;
|
||||
|
||||
use std::io::Write;
|
||||
use std::str;
|
||||
|
||||
include!("../clap-test.rs");
|
||||
|
||||
use clap::{App, Arg};
|
||||
use clap::{App, Arg, arg_enum};
|
||||
|
||||
static SCF2OP: &str = "flag present 2 times
|
||||
option NOT present
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#[macro_use]
|
||||
extern crate version_sync;
|
||||
use version_sync::{assert_html_root_url_updated, assert_markdown_deps_updated};
|
||||
|
||||
#[test]
|
||||
fn test_readme_deps() {
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
#![cfg(feature = "yaml")]
|
||||
|
||||
#[macro_use]
|
||||
extern crate clap;
|
||||
|
||||
use clap::App;
|
||||
use clap::{App, load_yaml};
|
||||
|
||||
#[test]
|
||||
fn create_app_from_yaml() {
|
||||
|
|
Loading…
Reference in a new issue