summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/cruft/cruft-minified-js/eval
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
commit75808db17caf8b960b351e3408e74142f4c85aac (patch)
tree7989e9c09a4240248bf4658a22208a0a52d991c4 /t/recipes/checks/cruft/cruft-minified-js/eval
parentInitial commit. (diff)
downloadlintian-upstream.tar.xz
lintian-upstream.zip
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 't/recipes/checks/cruft/cruft-minified-js/eval')
-rw-r--r--t/recipes/checks/cruft/cruft-minified-js/eval/desc2
-rw-r--r--t/recipes/checks/cruft/cruft-minified-js/eval/hints3
-rw-r--r--t/recipes/checks/cruft/cruft-minified-js/eval/post-test4
3 files changed, 9 insertions, 0 deletions
diff --git a/t/recipes/checks/cruft/cruft-minified-js/eval/desc b/t/recipes/checks/cruft/cruft-minified-js/eval/desc
new file mode 100644
index 0000000..190a0e8
--- /dev/null
+++ b/t/recipes/checks/cruft/cruft-minified-js/eval/desc
@@ -0,0 +1,2 @@
+Testname: cruft-minified-js
+Check: cruft
diff --git a/t/recipes/checks/cruft/cruft-minified-js/eval/hints b/t/recipes/checks/cruft/cruft-minified-js/eval/hints
new file mode 100644
index 0000000..09582a1
--- /dev/null
+++ b/t/recipes/checks/cruft/cruft-minified-js/eval/hints
@@ -0,0 +1,3 @@
+cruft-minified-js (source): source-contains-prebuilt-pandoc-documentation [oldfalsepositives/pandoc/]
+cruft-minified-js (source): source-contains-browserified-javascript code fragment:CODE
+cruft-minified-js (source): embedded-script-includes-copyright-statement extract of copyright statement: COPYRIGHT
diff --git a/t/recipes/checks/cruft/cruft-minified-js/eval/post-test b/t/recipes/checks/cruft/cruft-minified-js/eval/post-test
new file mode 100644
index 0000000..f1d2602
--- /dev/null
+++ b/t/recipes/checks/cruft/cruft-minified-js/eval/post-test
@@ -0,0 +1,4 @@
+s/mean line length is about [0-9]+ characters$/mean line is about NUMBER characters/
+s/line [0-9]+ is [0-9]+ characters long \(>[0-9]+\)$/line POSITION is LENGTH characters long (>CUTOFF)/
+s/code fragment:.*$/code fragment:CODE/
+s/extract of copyright statement:.*/extract of copyright statement: COPYRIGHT/