1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
|
Description: avoid not-in-Debian crate tracing-test
Author: Jonas Smedegaard <dr@jones.dk>
Forwarded: not-needed
Last-Update: 2024-07-12
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/library/Cargo.toml
+++ b/library/Cargo.toml
@@ -31,7 +31,6 @@
url.workspace = true
[dev-dependencies]
-tracing-test = { version = "0" }
yare = { version = "3" }
similar-asserts = { version = "1", features = ["serde", "unicode"] }
--- a/library/build.rs
+++ b/library/build.rs
@@ -93,7 +93,6 @@
.replace('-', "_");
format!(
r#"
-#[tracing_test::traced_test]
#[test]
fn {name}() {{
check_fixture_for_parser("{fixture_name}");
--- a/library/src/parse/element/test.rs
+++ b/library/src/parse/element/test.rs
@@ -3,7 +3,6 @@
use super::*;
use swc_common::{BytePos, FileName, SourceFile};
use swc_html_parser::parser::ParserConfig;
-use tracing_test::traced_test;
pub fn from_html_str(html: &str) -> swc_html_ast::Document {
let config = ParserConfig {
@@ -48,7 +47,6 @@
.find_map(|child| grab_element_from_child(child, tag_name))
}
-#[traced_test]
#[yare::parameterized(
one_thing = { r#"
<html>
@@ -99,7 +97,6 @@
);
}
-#[traced_test]
#[test]
fn expand_items_only_children() -> Result<(), crate::Error> {
let base_url: url::Url = "https://example.com".parse()?;
@@ -233,7 +230,6 @@
Ok(())
}
-#[traced_test]
#[test]
fn node_text_content() {
let elem = grab_element_from_document(&from_html_str(
@@ -254,7 +250,6 @@
);
}
-#[traced_test]
#[test]
fn node_html_content() {
let elem =grab_element_from_document(& from_html_str(
--- a/library/src/parse/property/explicit/test.rs
+++ b/library/src/parse/property/explicit/test.rs
@@ -4,10 +4,8 @@
ElementRef,
};
use microformats_types::temporal;
-use tracing_test::traced_test;
use tracing_unwrap::OptionExt;
-#[traced_test]
#[test]
fn linked() -> Result<(), crate::Error> {
let elem = grab_element_from_document(
@@ -67,7 +65,6 @@
Ok(())
}
-#[traced_test]
#[test]
fn html() -> Result<(), crate::Error> {
let elem = grab_element_from_document(
--- a/library/src/parse/property/item/test.rs
+++ b/library/src/parse/property/item/test.rs
@@ -4,10 +4,8 @@
ElementRef, MatchedElements,
};
use microformats_types::KnownClass;
-use tracing_test::traced_test;
use tracing_unwrap::OptionExt;
-#[traced_test]
#[test]
fn plain() -> Result<(), crate::parse::Error> {
let plain_text_dom = from_html_str(
@@ -53,7 +51,6 @@
Ok(())
}
-#[traced_test]
#[test]
fn linked() -> Result<(), crate::parse::Error> {
let linked_dom = from_html_str(
--- a/library/src/parse/property/test.rs
+++ b/library/src/parse/property/test.rs
@@ -3,9 +3,7 @@
use std::str::FromStr as _;
use super::*;
-use tracing_test::traced_test;
-#[traced_test]
#[test]
fn property_decl_kind_list_from_string() {
assert_eq!(
@@ -22,7 +20,6 @@
);
}
-#[traced_test]
#[test]
fn property_decl_kind_from_prefix_and_name() {
assert_eq!(
--- a/library/src/parse/test/suite/adhoc.rs
+++ b/library/src/parse/test/suite/adhoc.rs
@@ -1,7 +1,6 @@
// This aims to cache the issue at
// https://gitlab.com/maxburon/microformats-parser/-/issues/7#note_951502062
#[cfg(test)]
-#[tracing_test::traced_test]
#[test]
fn issue_7() -> Result<(), crate::Error> {
use crate::parse::Parser;
@@ -77,7 +76,6 @@
// This aims to capture the issue at
// https://gitlab.com/maxburon/microformats-parser/-/issues/22
#[cfg(test)]
-#[tracing_test::traced_test]
#[test]
fn issue_22() -> Result<(), crate::Error> {
use crate::parse::Parser;
@@ -113,7 +111,6 @@
// This aims to capture the issue at
// https://gitlab.com/maxburon/microformats-parser/-/issues/24
#[cfg(test)]
-#[tracing_test::traced_test]
#[test]
fn issue_24() -> Result<(), crate::Error> {
use crate::parse::Parser;
|