From 505e2811648d54698ca3d6ffd153a7479efa6714 Mon Sep 17 00:00:00 2001 From: bill-auger Date: Sat, 14 Mar 2020 08:37:34 -0400 Subject: refactor and add validations for refs --- blacklist-testdata.txt | 61 +++++++++++++++++++++++++++++++++----------------- 1 file changed, 41 insertions(+), 20 deletions(-) (limited to 'blacklist-testdata.txt') diff --git a/blacklist-testdata.txt b/blacklist-testdata.txt index 93f9d38..20ca592 100644 --- a/blacklist-testdata.txt +++ b/blacklist-testdata.txt @@ -1,22 +1,43 @@ # comments begin with '#' -valid-complete:replacement:parabola:42:[branding]valid complete -valid-no-desc::::[branding] -valid-no-tags::::valid no tags -valid-no-tags-no-desc:::: -valid-multiple-tags-no-desc::::[tag1][tag2] -valid-identical-duplicate::::[branding] valid identical duplicate -valid-identical-duplicate::::[branding] valid identical duplicate -valid-differing-duplicate::::[branding] valid differing duplicate -valid-differing-duplicate::::[branding] valid differing duplicate -valid-differing-duplicate::::[branding][uses-nonfree] valid differing duplicate -valid-space-after-tag::::[uses-nonfree] valid space after tag -valid-multiple-tags::::[tag1][tag2] [tag3]valid multiple tags -valid-with-spaces-and-tabs::::[tag1][tag2] [tag3] valid with spaces and tabs -valid-with-colon-tag::::[FIXME:description] valid with colon tag -invalid-too-many-colons-before-brace:::parabola:42:[nonfree] invalid too many colons before brace -invalid-too-many-colons-before-brace-lacking-tag:::parabola:42: invalid too many colons before brace lacking tag -invalid-too-many-colons-before-brace-with-spaces::: [semifree] invalid too many colons before brace with spaces -invalid-not-enough-colons-before-brace:::[uses-nonfree] invalid not enough colons before brace -invalid-not-enough-colons-before-brace-with-colon-tag:::[FIXME:package] invalid not enough colons before brace with colon tag -invalid-not-enough-colons-before-brace-lacking-tag::: invalid too many colons before brace lacking tag +# these will be accepted, pending validation +well-formed-complete:replacement:fsf:42:[technical]well-formed - complete +well-formed-no-ref:replacement::42:[technical] well-formed - no ref +well-formed-no-refid:replacement:fsf::[technical] well-formed - no ref_id +well-formed-no-ref-no-refiid:replacement:::[technical] well-formed - no ref - no ref_id +well-formed-no-tag:replacement:fsf:42:well-formed - no tag +well-formed-no-desc:replacement:fsf:42:[technical] +well-formed-no-tag-no-desc:replacement:fsf:42: +well-formed-unknown-tag:r:fsf:42:[unknown-tag] well formed - unknown tag +well-formed-unknown-tag-no-desc:r:fsf:42:[unknown-tag] +well-formed-multiple-tags-no-desc:r:fsf:42:[technical][nonfree] +well-formed-multiple-tags-unknown-tag:r:fsf:42:[technical][unknown-tag] well-formed - multiple tags - unknown tag +well-formed-identical-duplicate:r:fsf:42:[technical] well-formed - identical duplicate +well-formed-identical-duplicate:r:fsf:42:[technical] well-formed - identical duplicate +well-formed-differing-duplicate:r:fsf:42:[technical] well-formed - differing duplicate +well-formed-differing-duplicate:r:fsf:42:[technical] well-formed - differing duplicate +well-formed-differing-duplicate:r:fsf:42:[technical][nonfree] well-formed - differing duplicate +well-formed-differing-duplicate:r:fsf:42:[technical][nonfree] well-formed - differing duplicate +well-formed-space-after-tag:r:fsf:42:[nonfree] well-formed - space after tag +well-formed-multiple-tags:r:fsf:42:[tag1][tag2] [tag3]well-formed - multiple tags +well-formed-with-spaces-and-tabs:r:fsf:42:[tag1][tag2] [tag3] well-formed - with spaces and tabs +well-formed-with-deprecated-colon-in-tag:r:fsf:42:[FIXME:description] well-formed - with deprecated colon in tag + +# these will not be rejected before validation +malformed-too-many-colons-before-bracket-1::r:fsf:42:[nonfree] malformed - too many colons before bracket +malformed-too-many-colons-before-bracket-2:r::fsf:42:[nonfree] malformed - too many colons before bracket +malformed-too-many-colons-before-bracket-3:r:fsf::42:[nonfree] malformed - too many colons before bracket +malformed-too-many-colons-before-bracket-4:r:fsf:42::[nonfree] malformed - too many colons before bracket +malformed-too-many-colons-before-bracket-lacking-tag:r::fsf:42: malformed - too many colons before bracket - lacking tag +malformed-too-many-colons-before-bracket-with-spaces::r:fsf:42: [semifree] malformed - too many colons before bracket - with spaces +malformed-not-enough-colons-before-bracket-1:r:fsf:42[nonfree] malformed - not enough colons before bracket +malformed-not-enough-colons-before-bracket-2:r:fsf:[nonfree] malformed - not enough colons before bracket - no ref_id +malformed-not-enough-colons-before-bracket-3:fsf:42:[nonfree] malformed - not enough colons before bracket - no replacement +malformed-not-enough-colons-before-bracket-lacking-tag:r:: malformed - too many colons before bracket - lacking tag +malformed-not-enough-colons-before-bracket-with-deprecated-colon-in-tag:r::[FIXME:package] malformed - not enough colons before bracket - with deprecated colon in tag + +# TODO: deprecated reason tags +# TODO: probobly can drop: 'well-formed-with-deprecated-colon-in-tag' + 'malformed-not-enough-colons-before-bracket-with-deprecated-colon-in-tag' +well-formed-no-ref::::[FIXME:package] well-formed deprecated tag1 +well-formed-no-ref::::[FIXME:description] well-formed deprecated tag2 -- cgit v1.2.2