Skip to content

Commit

Permalink
Test Debian copyright for full match details
Browse files Browse the repository at this point in the history
The Debian copyright tests expected data were just a list of items
without an attribute name telling what each item was.

This fixes this by making the expected YAML results a dictionary rather
than a list. It also adds the full match details to the expected results such that we can better assess what failed and how and can better
update the tests as we improve license detection.

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
  • Loading branch information
pombredanne committed Aug 6, 2021
1 parent 23c4b6e commit 32958ca
Show file tree
Hide file tree
Showing 379 changed files with 133,569 additions and 2,088 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,46 @@
- mit
- - MIT
primary_license: mit
declared_license:
- MIT
- MIT
- mit AND mit
- |
- MIT
license_expression: mit AND mit
copyright: |
2015 Daniel Roesler <diafygi@gmail.com>
2016-2017 Jeremías Casteglione <jrmsdev@gmail.com>
2017-2018 Sebastien Badia <sbadia@debian.org>
2019 Samuel Henrique <samueloph@debian.org>
matches:
- score: '100.0'
start_line: 1
end_line: 18
matcher: 1-hash
rule_length: 161
matched_length: 161
match_coverage: '100.0'
rule_relevance: 100
identifier: mit.LICENSE
license_expression: mit
is_license_text: yes
is_license_notice: no
is_license_reference: no
is_license_tag: no
is_license_intro: no
matched_text: |
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Original file line number Diff line number Diff line change
@@ -1,4 +1,40 @@
- mit
- - MIT
- mit
- 2015 Daniel Roesler <diafygi@gmail.com>
primary_license: mit
declared_license:
- MIT
license_expression: mit
copyright: 2015 Daniel Roesler <diafygi@gmail.com>
matches:
- score: '100.0'
start_line: 1
end_line: 18
matcher: 1-hash
rule_length: 161
matched_length: 161
match_coverage: '100.0'
rule_relevance: 100
identifier: mit.LICENSE
license_expression: mit
is_license_text: yes
is_license_notice: no
is_license_reference: no
is_license_tag: no
is_license_intro: no
matched_text: |
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Loading

0 comments on commit 32958ca

Please sign in to comment.