Skip to content

Commit 5ca96d1

Browse files
committed
Test Debian copyright for full match details
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 <[email protected]>
1 parent 23c4b6e commit 5ca96d1

File tree

379 files changed

+133585
-2099
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

379 files changed

+133585
-2099
lines changed
Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,46 @@
1-
- mit
2-
- - MIT
1+
primary_license: mit
2+
declared_license:
33
- MIT
44
- MIT
5-
- mit AND mit
6-
- |
5+
- MIT
6+
license_expression: mit AND mit
7+
copyright: |
78
2015 Daniel Roesler <[email protected]>
89
2016-2017 Jeremías Casteglione <[email protected]>
910
2017-2018 Sebastien Badia <[email protected]>
1011
2019 Samuel Henrique <[email protected]>
12+
matches:
13+
- score: '100.0'
14+
start_line: 1
15+
end_line: 18
16+
matcher: 1-hash
17+
rule_length: 161
18+
matched_length: 161
19+
match_coverage: '100.0'
20+
rule_relevance: 100
21+
identifier: mit.LICENSE
22+
license_expression: mit
23+
is_license_text: yes
24+
is_license_notice: no
25+
is_license_reference: no
26+
is_license_tag: no
27+
is_license_intro: no
28+
matched_text: |
29+
Permission is hereby granted, free of charge, to any person obtaining
30+
a copy of this software and associated documentation files (the
31+
"Software"), to deal in the Software without restriction, including
32+
without limitation the rights to use, copy, modify, merge, publish,
33+
distribute, sublicense, and/or sell copies of the Software, and to
34+
permit persons to whom the Software is furnished to do so, subject to
35+
the following conditions:
36+
37+
The above copyright notice and this permission notice shall be included
38+
in all copies or substantial portions of the Software.
39+
40+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
41+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
42+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
43+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
44+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
45+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
46+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,40 @@
1-
- mit
2-
- - MIT
3-
- mit
4-
- 2015 Daniel Roesler <[email protected]>
1+
primary_license: mit
2+
declared_license:
3+
- MIT
4+
license_expression: mit
5+
copyright: 2015 Daniel Roesler <[email protected]>
6+
matches:
7+
- score: '100.0'
8+
start_line: 1
9+
end_line: 18
10+
matcher: 1-hash
11+
rule_length: 161
12+
matched_length: 161
13+
match_coverage: '100.0'
14+
rule_relevance: 100
15+
identifier: mit.LICENSE
16+
license_expression: mit
17+
is_license_text: yes
18+
is_license_notice: no
19+
is_license_reference: no
20+
is_license_tag: no
21+
is_license_intro: no
22+
matched_text: |
23+
Permission is hereby granted, free of charge, to any person obtaining
24+
a copy of this software and associated documentation files (the
25+
"Software"), to deal in the Software without restriction, including
26+
without limitation the rights to use, copy, modify, merge, publish,
27+
distribute, sublicense, and/or sell copies of the Software, and to
28+
permit persons to whom the Software is furnished to do so, subject to
29+
the following conditions:
30+
31+
The above copyright notice and this permission notice shall be included
32+
in all copies or substantial portions of the Software.
33+
34+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
36+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
37+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
38+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
39+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
40+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)