Skip to content

Reduce build noise #473

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ readme = "README.md"
keywords = ["url", "parser"]
categories = ["parser-implementations", "web-programming", "encoding"]
license = "MIT/Apache-2.0"
autotests = false # Inhibit lookup for tests/*.rs without [[test]] sections

[badges]
travis-ci = { repository = "servo/rust-url" }
Expand Down
1 change: 1 addition & 0 deletions data-url/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ authors = ["Simon Sapin <[email protected]>"]
description = "Processing of data: URL according to WHATWG’s Fetch Standard"
repository = "https://github.com/servo/rust-url"
license = "MIT OR Apache-2.0"
autotests = false

[dependencies]
matches = "0.1"
Expand Down
10 changes: 8 additions & 2 deletions data-url/tests/wpt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ extern crate rustc_test;
#[macro_use] extern crate serde;
extern crate serde_json;

fn run_data_url(input: String, expected_mime: Option<String>, expected_body: Option<Vec<u8>>) {
fn run_data_url(input: String, expected_mime: Option<String>, expected_body: Option<Vec<u8>>, expected_panic: bool) {
let priorhook = std::panic::take_hook();
std::panic::set_hook(Box::new(move|p| {
if !expected_panic {
priorhook(p);
}
}));
let url = data_url::DataUrl::process(&input);
if let Some(expected_mime) = expected_mime {
let url = url.unwrap();
Expand Down Expand Up @@ -46,7 +52,7 @@ fn collect_data_url<F>(add_test: &mut F)
format!("data: URL {:?}", input),
should_panic,
rustc_test::TestFn::dyn_test_fn(move || {
run_data_url(input, expected_mime, expected_body)
run_data_url(input, expected_mime, expected_body, should_panic)
})
);
}
Expand Down
1 change: 1 addition & 0 deletions idna/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ authors = ["The rust-url developers"]
description = "IDNA (Internationalizing Domain Names in Applications) and Punycode."
repository = "https://github.com/servo/rust-url/"
license = "MIT/Apache-2.0"
autotests = false

[lib]
doctest = false
Expand Down