diff --git a/tests/data/cli/1_file_moved.json b/tests/data/cli/1_file_moved.json deleted file mode 100644 index 3a824cc6..00000000 --- a/tests/data/cli/1_file_moved.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "deltacode_version": "0.0.1.beta", - "deltacode_stats": { - "added": 0, - "modified": 0, - "moved": 1, - "removed": 0, - "unmodified": 7 - }, - "deltas": [ - { - "category": "moved", - "path": "b/a4.py", - "old_path": "a/a4.py", - "name": "a4.py", - "type": "file", - "size": 200 - }, - { - "category": "unmodified", - "path": "a/a3.py", - "name": "a3.py", - "type": "file", - "size": 200 - }, - { - "category": "unmodified", - "path": "b/b4.py", - "name": "b4.py", - "type": "file", - "size": 200 - }, - { - "category": "unmodified", - "path": "a/a2.py", - "name": "a2.py", - "type": "file", - "size": 200 - }, - { - "category": "unmodified", - "path": "b/b2.py", - "name": "b2.py", - "type": "file", - "size": 200 - }, - { - "category": "unmodified", - "path": "b/b1.py", - "name": "b1.py", - "type": "file", - "size": 200 - }, - { - "category": "unmodified", - "path": "b/b3.py", - "name": "b3.py", - "type": "file", - "size": 200 - }, - { - "category": "unmodified", - "path": "a/a1.py", - "name": "a1.py", - "type": "file", - "size": 200 - } - ] -} diff --git a/tests/data/deltacode/to-dict-unmodified.json b/tests/data/deltacode/to-dict-unmodified.json deleted file mode 100644 index ecc77747..00000000 --- a/tests/data/deltacode/to-dict-unmodified.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "scancode_notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.", - "scancode_version": "2.2.1.post49.bfb0b11", - "scancode_options": { - "--info": true, - "--license-score": 0, - "--format": "json-pp" - }, - "files_count": 1, - "files": [ - { - "path": "test/unmodified.txt", - "type": "file", - "name": "unmodified.txt", - "base_name": "unmodified", - "extension": ".txt", - "date": "2017-11-16", - "size": 11, - "sha1": "4f499c82f79e5372c293010f931ad2798ddf3e8e", - "md5": "5a94696761e458f1c659a666554848fd", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - } - ] -} diff --git a/tests/data/models/scan/align-trees-simple-new.json b/tests/data/models/scan/align-trees-simple-new.json deleted file mode 100644 index 28133939..00000000 --- a/tests/data/models/scan/align-trees-simple-new.json +++ /dev/null @@ -1,958 +0,0 @@ -{ - "scancode_notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.", - "scancode_version": "2.2.1.post12.6d07756e", - "scancode_options": { - "--info": true, - "--license-score": 0, - "--format": "json-pp" - }, - "files_count": 43, - "files": [ - { - "path": "samples/README", - "type": "file", - "name": "README", - "base_name": "README", - "extension": "", - "date": "2017-09-22", - "size": 236, - "sha1": "2e07e32c52d607204fad196052d70e3d18fb8636", - "md5": "effc6856ef85a9250fb1a470792b3f38", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/screenshot.png", - "type": "file", - "name": "screenshot.png", - "base_name": "screenshot", - "extension": ".png", - "date": "2017-09-22", - "size": 622754, - "sha1": "01ff4b1de0bc6c75c9cca6e46c80c1802d6976d4", - "md5": "b6ef5a90777147423c98b42a6a25e57a", - "files_count": null, - "mime_type": "image/png", - "file_type": "PNG image data, 2880 x 1666, 8-bit/color RGB, non-interlaced", - "programming_language": null, - "is_binary": true, - "is_text": false, - "is_archive": false, - "is_media": true, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/arch", - "type": "directory", - "name": "arch", - "base_name": "arch", - "extension": "", - "date": null, - "size": 28103, - "sha1": null, - "md5": null, - "files_count": 1, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups", - "type": "directory", - "name": "JGroups", - "base_name": "JGroups", - "extension": "", - "date": null, - "size": 241228, - "sha1": null, - "md5": null, - "files_count": 14, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib", - "type": "directory", - "name": "zlib", - "base_name": "zlib", - "extension": "", - "date": null, - "size": 268762, - "sha1": null, - "md5": null, - "files_count": 16, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/arch/zlib.tar.gz", - "type": "file", - "name": "zlib.tar.gz", - "base_name": "zlib", - "extension": ".tar.gz", - "date": "2017-09-22", - "size": 28103, - "sha1": "576f0ccfe534d7f5ff5d6400078d3c6586de3abd", - "md5": "20b2370751abfc08bb3556c1d8114b5a", - "files_count": null, - "mime_type": "application/x-gzip", - "file_type": "gzip compressed data, last modified: Wed Jul 15 09:08:19 2015, from Unix", - "programming_language": null, - "is_binary": true, - "is_text": false, - "is_archive": true, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/EULA", - "type": "file", - "name": "EULA", - "base_name": "EULA", - "extension": "", - "date": "2017-09-22", - "size": 8156, - "sha1": "eb232aa0424eca9c4136904e6143b72aaa9cf4de", - "md5": "0be0aceb8296727efff0ac0bf8e6bdb3", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "JavaScript+Lasso", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/LICENSE", - "type": "file", - "name": "LICENSE", - "base_name": "LICENSE", - "extension": "", - "date": "2017-09-22", - "size": 26430, - "sha1": "e60c2e780886f95df9c9ee36992b8edabec00bcc", - "md5": "7fbc338309ac38fefcd64b04bb903e34", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/licenses", - "type": "directory", - "name": "licenses", - "base_name": "licenses", - "extension": "", - "date": null, - "size": 54552, - "sha1": null, - "md5": null, - "files_count": 5, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src", - "type": "directory", - "name": "src", - "base_name": "src", - "extension": "", - "date": null, - "size": 152090, - "sha1": null, - "md5": null, - "files_count": 7, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/licenses/apache-1.1.txt", - "type": "file", - "name": "apache-1.1.txt", - "base_name": "apache-1.1", - "extension": ".txt", - "date": "2017-09-22", - "size": 2885, - "sha1": "6b5608d35c3e304532af43db8bbfc5947bef46a6", - "md5": "276982197c941f4cbf3d218546e17ae2", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/licenses/apache-2.0.txt", - "type": "file", - "name": "apache-2.0.txt", - "base_name": "apache-2.0", - "extension": ".txt", - "date": "2017-09-22", - "size": 11560, - "sha1": "47b573e3824cd5e02a1a3ae99e2735b49e0256e4", - "md5": "d273d63619c9aeaf15cdaf76422c4f87", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/licenses/bouncycastle.txt", - "type": "file", - "name": "bouncycastle.txt", - "base_name": "bouncycastle", - "extension": ".txt", - "date": "2017-09-22", - "size": 1186, - "sha1": "74facb0e9a734479f9cd893b5be3fe1bf651b760", - "md5": "9fffd8de865a5705969f62b128381f85", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/licenses/cpl-1.0.txt", - "type": "file", - "name": "cpl-1.0.txt", - "base_name": "cpl-1.0", - "extension": ".txt", - "date": "2017-09-22", - "size": 11987, - "sha1": "681cf776bcd79752543d42490ec7ed22a29fd888", - "md5": "9a6d2c9ae73d59eb3dd38e3909750d14", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/licenses/lgpl.txt", - "type": "file", - "name": "lgpl.txt", - "base_name": "lgpl", - "extension": ".txt", - "date": "2017-09-22", - "size": 26934, - "sha1": "8f1a637d2e2ed1bdb9eb01a7dccb5c12cc0557e1", - "md5": "f14599a2f089f6ff8c97e2baa4e3d575", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/FixedMembershipToken.java", - "type": "file", - "name": "FixedMembershipToken.java", - "base_name": "FixedMembershipToken", - "extension": ".java", - "date": "2017-09-22", - "size": 5144, - "sha1": "5901f73dcc78155a1a2c7b5663a3a11fba400b19", - "md5": "aca9640ec8beee21b098bcf8ecc91442", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/GuardedBy.java", - "type": "file", - "name": "GuardedBy.java", - "base_name": "GuardedBy", - "extension": ".java", - "date": "2017-09-22", - "size": 813, - "sha1": "981d67087e65e9a44957c026d4b10817cf77d966", - "md5": "c5064400f759d3e81771005051d17dc1", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/ImmutableReference.java", - "type": "file", - "name": "ImmutableReference.java", - "base_name": "ImmutableReference", - "extension": ".java", - "date": "2017-09-22", - "size": 1838, - "sha1": "30f56b876d5576d9869e2c5c509b08db57110592", - "md5": "48ca3c72fb9a65c771a321222f118b88", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/RATE_LIMITER.java", - "type": "file", - "name": "RATE_LIMITER.java", - "base_name": "RATE_LIMITER", - "extension": ".java", - "date": "2017-09-22", - "size": 3692, - "sha1": "a8087e5d50da3273536ebda9b87b77aa4ff55deb", - "md5": "4626bdbc48871b55513e1a12991c61a8", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/RouterStub.java", - "type": "file", - "name": "RouterStub.java", - "base_name": "RouterStub", - "extension": ".java", - "date": "2017-09-22", - "size": 9913, - "sha1": "c1f6818f8ee7bddcc9f444bc94c099729d716d52", - "md5": "eecfe23494acbcd8088c93bc1e83c7f2", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/RouterStubManager.java", - "type": "file", - "name": "RouterStubManager.java", - "base_name": "RouterStubManager", - "extension": ".java", - "date": "2017-09-22", - "size": 8162, - "sha1": "eb419dc94cfe11ca318a3e743a7f9f080e70c751", - "md5": "20bee9631b7c82a45c250e095352aec7", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/S3_PING.java", - "type": "file", - "name": "S3_PING.java", - "base_name": "S3_PING", - "extension": ".java", - "date": "2017-09-22", - "size": 122528, - "sha1": "08dba9986f69719970ead3592dc565465164df0d", - "md5": "83d8324f37d0e3f120bc89865cf0bd39", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/adler32.c", - "type": "file", - "name": "adler32.c", - "base_name": "adler32", - "extension": ".c", - "date": "2017-09-22", - "size": 4968, - "sha1": "0cff4808476ce0b5f6f0ebbc69ee2ab2a0eebe43", - "md5": "ae3bbb54820e1d49fb90cbba222e973f", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/deflate.c", - "type": "file", - "name": "deflate.c", - "base_name": "deflate", - "extension": ".c", - "date": "2017-09-22", - "size": 71476, - "sha1": "7b4ace6d698c5dbbfb9a8f047f63228ca54d2e77", - "md5": "cd7826278ce9d9d9ed5abdefef50c3e2", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/deflate.h", - "type": "file", - "name": "deflate.h", - "base_name": "deflate", - "extension": ".h", - "date": "2017-09-22", - "size": 12774, - "sha1": "29ed3b8ca3927576e5889dea5880ca0052942c7d", - "md5": "7ceae74a13201f14c91623116af169c3", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/zlib.h", - "type": "file", - "name": "zlib.h", - "base_name": "zlib", - "extension": ".h", - "date": "2017-09-22", - "size": 87883, - "sha1": "400d35465f179a4acacb5fe749e6ce20a0bbdb84", - "md5": "64d8a5180bd54ff5452886e4cbb21e14", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/zutil.c", - "type": "file", - "name": "zutil.c", - "base_name": "zutil", - "extension": ".c", - "date": "2017-09-22", - "size": 7414, - "sha1": "e1af709bff21ae0d4331119a7fc4c19f82932043", - "md5": "fff257bc1656eb60fc585a7dc35f963d", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/zutil.h", - "type": "file", - "name": "zutil.h", - "base_name": "zutil", - "extension": ".h", - "date": "2017-09-22", - "size": 6766, - "sha1": "b909d27ef9ce51639f76b7ea6b62721e7d1b6bf7", - "md5": "04fcfbb961591c9452c4d0fd1525ffdf", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/ada", - "type": "directory", - "name": "ada", - "base_name": "ada", - "extension": "", - "date": null, - "size": 13594, - "sha1": null, - "md5": null, - "files_count": 1, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/dotzlib", - "type": "directory", - "name": "dotzlib", - "base_name": "dotzlib", - "extension": "", - "date": null, - "size": 14257, - "sha1": null, - "md5": null, - "files_count": 4, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/gcc_gvmat64", - "type": "directory", - "name": "gcc_gvmat64", - "base_name": "gcc_gvmat64", - "extension": "", - "date": null, - "size": 16413, - "sha1": null, - "md5": null, - "files_count": 1, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/infback9", - "type": "directory", - "name": "infback9", - "base_name": "infback9", - "extension": "", - "date": null, - "size": 23223, - "sha1": null, - "md5": null, - "files_count": 2, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/iostream2", - "type": "directory", - "name": "iostream2", - "base_name": "iostream2", - "extension": "", - "date": null, - "size": 9994, - "sha1": null, - "md5": null, - "files_count": 2, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/ada/zlib.ads", - "type": "file", - "name": "zlib.ads", - "base_name": "zlib", - "extension": ".ads", - "date": "2017-09-22", - "size": 13594, - "sha1": "0245a91806d804bf9f0907a3a001a141e9adb61b", - "md5": "71de2670f2e588b51c62e7f6a9046399", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Ada", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/dotzlib/AssemblyInfo.cs", - "type": "file", - "name": "AssemblyInfo.cs", - "base_name": "AssemblyInfo", - "extension": ".cs", - "date": "2017-09-22", - "size": 2500, - "sha1": "9f1db1177b2e9a014f72bb3cd80be17133e06d16", - "md5": "23d0d7c18846fc31655b6aa89b7c8038", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "C#", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/dotzlib/ChecksumImpl.cs", - "type": "file", - "name": "ChecksumImpl.cs", - "base_name": "ChecksumImpl", - "extension": ".cs", - "date": "2017-09-22", - "size": 8040, - "sha1": "3807a0e24a57b92ea301559cab7307b8eab52c51", - "md5": "d01b3cb2e75da9b15f05b92b42f6bd33", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ISO-8859 text, with CRLF line terminators", - "programming_language": "C#", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/dotzlib/LICENSE_1_0.txt", - "type": "file", - "name": "LICENSE_1_0.txt", - "base_name": "LICENSE_1_0", - "extension": ".txt", - "date": "2017-09-22", - "size": 1359, - "sha1": "892b34f7865d90a6f949f50d95e49625a10bc7f0", - "md5": "81543b22c36f10d20ac9712f8d80ef8d", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/dotzlib/readme.txt", - "type": "file", - "name": "readme.txt", - "base_name": "readme", - "extension": ".txt", - "date": "2017-09-22", - "size": 2358, - "sha1": "b1229b826f0096808628474538cea8fec2922a9b", - "md5": "1f20f3168ee63d90de033edac2ce383c", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/gcc_gvmat64/gvmat64.S", - "type": "file", - "name": "gvmat64.S", - "base_name": "gvmat64", - "extension": ".S", - "date": "2017-09-22", - "size": 16413, - "sha1": "742603cba1af98a1432cc02efb019b1a5760adf2", - "md5": "5e772d7302475e5473d0c4c57b9861e8", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text, with CRLF line terminators", - "programming_language": "GAS", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/infback9/infback9.c", - "type": "file", - "name": "infback9.c", - "base_name": "infback9", - "extension": ".c", - "date": "2017-09-22", - "size": 21629, - "sha1": "17fb362c03755b12f2dda5b12a68cf38162674bd", - "md5": "23ff5edec0817da303cb1294c1e4205c", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/infback9/infback9.h", - "type": "file", - "name": "infback9.h", - "base_name": "infback9", - "extension": ".h", - "date": "2017-09-22", - "size": 1594, - "sha1": "d0486a32b558dcaceded5f0746fad62e680a4734", - "md5": "52b1ed99960d3ed7ed60cd20295e64a8", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/iostream2/zstream.h", - "type": "file", - "name": "zstream.h", - "base_name": "zstream", - "extension": ".h", - "date": "2017-09-22", - "size": 9283, - "sha1": "fca4540d490fff36bb90fd801cf9cd8fc695bb17", - "md5": "a980b61c1e8be68d5cdb1236ba6b43e7", - "files_count": null, - "mime_type": "text/x-c++", - "file_type": "C++ source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/iostream2/zstream_test.cpp", - "type": "file", - "name": "zstream_test.cpp", - "base_name": "zstream_test", - "extension": ".cpp", - "date": "2017-09-22", - "size": 711, - "sha1": "e18a6d55cbbd8b832f8d795530553467e5c74fcf", - "md5": "d32476bde4e6d5f889092fdff6f8cdb0", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C++", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - } - ] -} diff --git a/tests/data/models/scan/align-trees-simple-old.json b/tests/data/models/scan/align-trees-simple-old.json deleted file mode 100644 index 38bc1409..00000000 --- a/tests/data/models/scan/align-trees-simple-old.json +++ /dev/null @@ -1,959 +0,0 @@ -{ - "scancode_notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.", - "scancode_version": "2.2.1.post12.6d07756e", - "scancode_options": { - "--info": true, - "--license-score": 0, - "--full-root": true, - "--format": "json-pp" - }, - "files_count": 43, - "files": [ - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/README", - "type": "file", - "name": "README", - "base_name": "README", - "extension": "", - "date": "2017-09-22", - "size": 236, - "sha1": "2e07e32c52d607204fad196052d70e3d18fb8636", - "md5": "effc6856ef85a9250fb1a470792b3f38", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/screenshot.png", - "type": "file", - "name": "screenshot.png", - "base_name": "screenshot", - "extension": ".png", - "date": "2017-09-22", - "size": 622754, - "sha1": "01ff4b1de0bc6c75c9cca6e46c80c1802d6976d4", - "md5": "b6ef5a90777147423c98b42a6a25e57a", - "files_count": null, - "mime_type": "image/png", - "file_type": "PNG image data, 2880 x 1666, 8-bit/color RGB, non-interlaced", - "programming_language": null, - "is_binary": true, - "is_text": false, - "is_archive": false, - "is_media": true, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/arch", - "type": "directory", - "name": "arch", - "base_name": "arch", - "extension": "", - "date": null, - "size": 28103, - "sha1": null, - "md5": null, - "files_count": 1, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups", - "type": "directory", - "name": "JGroups", - "base_name": "JGroups", - "extension": "", - "date": null, - "size": 241228, - "sha1": null, - "md5": null, - "files_count": 14, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib", - "type": "directory", - "name": "zlib", - "base_name": "zlib", - "extension": "", - "date": null, - "size": 268762, - "sha1": null, - "md5": null, - "files_count": 16, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/arch/zlib.tar.gz", - "type": "file", - "name": "zlib.tar.gz", - "base_name": "zlib", - "extension": ".tar.gz", - "date": "2017-09-22", - "size": 28103, - "sha1": "576f0ccfe534d7f5ff5d6400078d3c6586de3abd", - "md5": "20b2370751abfc08bb3556c1d8114b5a", - "files_count": null, - "mime_type": "application/x-gzip", - "file_type": "gzip compressed data, last modified: Wed Jul 15 09:08:19 2015, from Unix", - "programming_language": null, - "is_binary": true, - "is_text": false, - "is_archive": true, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/EULA", - "type": "file", - "name": "EULA", - "base_name": "EULA", - "extension": "", - "date": "2017-09-22", - "size": 8156, - "sha1": "eb232aa0424eca9c4136904e6143b72aaa9cf4de", - "md5": "0be0aceb8296727efff0ac0bf8e6bdb3", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "JavaScript+Lasso", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/LICENSE", - "type": "file", - "name": "LICENSE", - "base_name": "LICENSE", - "extension": "", - "date": "2017-09-22", - "size": 26430, - "sha1": "e60c2e780886f95df9c9ee36992b8edabec00bcc", - "md5": "7fbc338309ac38fefcd64b04bb903e34", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/licenses", - "type": "directory", - "name": "licenses", - "base_name": "licenses", - "extension": "", - "date": null, - "size": 54552, - "sha1": null, - "md5": null, - "files_count": 5, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src", - "type": "directory", - "name": "src", - "base_name": "src", - "extension": "", - "date": null, - "size": 152090, - "sha1": null, - "md5": null, - "files_count": 7, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/licenses/apache-1.1.txt", - "type": "file", - "name": "apache-1.1.txt", - "base_name": "apache-1.1", - "extension": ".txt", - "date": "2017-09-22", - "size": 2885, - "sha1": "6b5608d35c3e304532af43db8bbfc5947bef46a6", - "md5": "276982197c941f4cbf3d218546e17ae2", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/licenses/apache-2.0.txt", - "type": "file", - "name": "apache-2.0.txt", - "base_name": "apache-2.0", - "extension": ".txt", - "date": "2017-09-22", - "size": 11560, - "sha1": "47b573e3824cd5e02a1a3ae99e2735b49e0256e4", - "md5": "d273d63619c9aeaf15cdaf76422c4f87", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/licenses/bouncycastle.txt", - "type": "file", - "name": "bouncycastle.txt", - "base_name": "bouncycastle", - "extension": ".txt", - "date": "2017-09-22", - "size": 1186, - "sha1": "74facb0e9a734479f9cd893b5be3fe1bf651b760", - "md5": "9fffd8de865a5705969f62b128381f85", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/licenses/cpl-1.0.txt", - "type": "file", - "name": "cpl-1.0.txt", - "base_name": "cpl-1.0", - "extension": ".txt", - "date": "2017-09-22", - "size": 11987, - "sha1": "681cf776bcd79752543d42490ec7ed22a29fd888", - "md5": "9a6d2c9ae73d59eb3dd38e3909750d14", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/licenses/lgpl.txt", - "type": "file", - "name": "lgpl.txt", - "base_name": "lgpl", - "extension": ".txt", - "date": "2017-09-22", - "size": 26934, - "sha1": "8f1a637d2e2ed1bdb9eb01a7dccb5c12cc0557e1", - "md5": "f14599a2f089f6ff8c97e2baa4e3d575", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/FixedMembershipToken.java", - "type": "file", - "name": "FixedMembershipToken.java", - "base_name": "FixedMembershipToken", - "extension": ".java", - "date": "2017-09-22", - "size": 5144, - "sha1": "5901f73dcc78155a1a2c7b5663a3a11fba400b19", - "md5": "aca9640ec8beee21b098bcf8ecc91442", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/GuardedBy.java", - "type": "file", - "name": "GuardedBy.java", - "base_name": "GuardedBy", - "extension": ".java", - "date": "2017-09-22", - "size": 813, - "sha1": "981d67087e65e9a44957c026d4b10817cf77d966", - "md5": "c5064400f759d3e81771005051d17dc1", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/ImmutableReference.java", - "type": "file", - "name": "ImmutableReference.java", - "base_name": "ImmutableReference", - "extension": ".java", - "date": "2017-09-22", - "size": 1838, - "sha1": "30f56b876d5576d9869e2c5c509b08db57110592", - "md5": "48ca3c72fb9a65c771a321222f118b88", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/RATE_LIMITER.java", - "type": "file", - "name": "RATE_LIMITER.java", - "base_name": "RATE_LIMITER", - "extension": ".java", - "date": "2017-09-22", - "size": 3692, - "sha1": "a8087e5d50da3273536ebda9b87b77aa4ff55deb", - "md5": "4626bdbc48871b55513e1a12991c61a8", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/RouterStub.java", - "type": "file", - "name": "RouterStub.java", - "base_name": "RouterStub", - "extension": ".java", - "date": "2017-09-22", - "size": 9913, - "sha1": "c1f6818f8ee7bddcc9f444bc94c099729d716d52", - "md5": "eecfe23494acbcd8088c93bc1e83c7f2", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/RouterStubManager.java", - "type": "file", - "name": "RouterStubManager.java", - "base_name": "RouterStubManager", - "extension": ".java", - "date": "2017-09-22", - "size": 8162, - "sha1": "eb419dc94cfe11ca318a3e743a7f9f080e70c751", - "md5": "20bee9631b7c82a45c250e095352aec7", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/S3_PING.java", - "type": "file", - "name": "S3_PING.java", - "base_name": "S3_PING", - "extension": ".java", - "date": "2017-09-22", - "size": 122528, - "sha1": "08dba9986f69719970ead3592dc565465164df0d", - "md5": "83d8324f37d0e3f120bc89865cf0bd39", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/adler32.c", - "type": "file", - "name": "adler32.c", - "base_name": "adler32", - "extension": ".c", - "date": "2017-09-22", - "size": 4968, - "sha1": "0cff4808476ce0b5f6f0ebbc69ee2ab2a0eebe43", - "md5": "ae3bbb54820e1d49fb90cbba222e973f", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/deflate.c", - "type": "file", - "name": "deflate.c", - "base_name": "deflate", - "extension": ".c", - "date": "2017-09-22", - "size": 71476, - "sha1": "7b4ace6d698c5dbbfb9a8f047f63228ca54d2e77", - "md5": "cd7826278ce9d9d9ed5abdefef50c3e2", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/deflate.h", - "type": "file", - "name": "deflate.h", - "base_name": "deflate", - "extension": ".h", - "date": "2017-09-22", - "size": 12774, - "sha1": "29ed3b8ca3927576e5889dea5880ca0052942c7d", - "md5": "7ceae74a13201f14c91623116af169c3", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/zlib.h", - "type": "file", - "name": "zlib.h", - "base_name": "zlib", - "extension": ".h", - "date": "2017-09-22", - "size": 87883, - "sha1": "400d35465f179a4acacb5fe749e6ce20a0bbdb84", - "md5": "64d8a5180bd54ff5452886e4cbb21e14", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/zutil.c", - "type": "file", - "name": "zutil.c", - "base_name": "zutil", - "extension": ".c", - "date": "2017-09-22", - "size": 7414, - "sha1": "e1af709bff21ae0d4331119a7fc4c19f82932043", - "md5": "fff257bc1656eb60fc585a7dc35f963d", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/zutil.h", - "type": "file", - "name": "zutil.h", - "base_name": "zutil", - "extension": ".h", - "date": "2017-09-22", - "size": 6766, - "sha1": "b909d27ef9ce51639f76b7ea6b62721e7d1b6bf7", - "md5": "04fcfbb961591c9452c4d0fd1525ffdf", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/ada", - "type": "directory", - "name": "ada", - "base_name": "ada", - "extension": "", - "date": null, - "size": 13594, - "sha1": null, - "md5": null, - "files_count": 1, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/dotzlib", - "type": "directory", - "name": "dotzlib", - "base_name": "dotzlib", - "extension": "", - "date": null, - "size": 14257, - "sha1": null, - "md5": null, - "files_count": 4, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/gcc_gvmat64", - "type": "directory", - "name": "gcc_gvmat64", - "base_name": "gcc_gvmat64", - "extension": "", - "date": null, - "size": 16413, - "sha1": null, - "md5": null, - "files_count": 1, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/infback9", - "type": "directory", - "name": "infback9", - "base_name": "infback9", - "extension": "", - "date": null, - "size": 23223, - "sha1": null, - "md5": null, - "files_count": 2, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/iostream2", - "type": "directory", - "name": "iostream2", - "base_name": "iostream2", - "extension": "", - "date": null, - "size": 9994, - "sha1": null, - "md5": null, - "files_count": 2, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/ada/zlib.ads", - "type": "file", - "name": "zlib.ads", - "base_name": "zlib", - "extension": ".ads", - "date": "2017-09-22", - "size": 13594, - "sha1": "0245a91806d804bf9f0907a3a001a141e9adb61b", - "md5": "71de2670f2e588b51c62e7f6a9046399", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Ada", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/dotzlib/AssemblyInfo.cs", - "type": "file", - "name": "AssemblyInfo.cs", - "base_name": "AssemblyInfo", - "extension": ".cs", - "date": "2017-09-22", - "size": 2500, - "sha1": "9f1db1177b2e9a014f72bb3cd80be17133e06d16", - "md5": "23d0d7c18846fc31655b6aa89b7c8038", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "C#", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/dotzlib/ChecksumImpl.cs", - "type": "file", - "name": "ChecksumImpl.cs", - "base_name": "ChecksumImpl", - "extension": ".cs", - "date": "2017-09-22", - "size": 8040, - "sha1": "3807a0e24a57b92ea301559cab7307b8eab52c51", - "md5": "d01b3cb2e75da9b15f05b92b42f6bd33", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ISO-8859 text, with CRLF line terminators", - "programming_language": "C#", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/dotzlib/LICENSE_1_0.txt", - "type": "file", - "name": "LICENSE_1_0.txt", - "base_name": "LICENSE_1_0", - "extension": ".txt", - "date": "2017-09-22", - "size": 1359, - "sha1": "892b34f7865d90a6f949f50d95e49625a10bc7f0", - "md5": "81543b22c36f10d20ac9712f8d80ef8d", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/dotzlib/readme.txt", - "type": "file", - "name": "readme.txt", - "base_name": "readme", - "extension": ".txt", - "date": "2017-09-22", - "size": 2358, - "sha1": "b1229b826f0096808628474538cea8fec2922a9b", - "md5": "1f20f3168ee63d90de033edac2ce383c", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/gcc_gvmat64/gvmat64.S", - "type": "file", - "name": "gvmat64.S", - "base_name": "gvmat64", - "extension": ".S", - "date": "2017-09-22", - "size": 16413, - "sha1": "742603cba1af98a1432cc02efb019b1a5760adf2", - "md5": "5e772d7302475e5473d0c4c57b9861e8", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text, with CRLF line terminators", - "programming_language": "GAS", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/infback9/infback9.c", - "type": "file", - "name": "infback9.c", - "base_name": "infback9", - "extension": ".c", - "date": "2017-09-22", - "size": 21629, - "sha1": "17fb362c03755b12f2dda5b12a68cf38162674bd", - "md5": "23ff5edec0817da303cb1294c1e4205c", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/infback9/infback9.h", - "type": "file", - "name": "infback9.h", - "base_name": "infback9", - "extension": ".h", - "date": "2017-09-22", - "size": 1594, - "sha1": "d0486a32b558dcaceded5f0746fad62e680a4734", - "md5": "52b1ed99960d3ed7ed60cd20295e64a8", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/iostream2/zstream.h", - "type": "file", - "name": "zstream.h", - "base_name": "zstream", - "extension": ".h", - "date": "2017-09-22", - "size": 9283, - "sha1": "fca4540d490fff36bb90fd801cf9cd8fc695bb17", - "md5": "a980b61c1e8be68d5cdb1236ba6b43e7", - "files_count": null, - "mime_type": "text/x-c++", - "file_type": "C++ source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/iostream2/zstream_test.cpp", - "type": "file", - "name": "zstream_test.cpp", - "base_name": "zstream_test", - "extension": ".cpp", - "date": "2017-09-22", - "size": 711, - "sha1": "e18a6d55cbbd8b832f8d795530553467e5c74fcf", - "md5": "d32476bde4e6d5f889092fdff6f8cdb0", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C++", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - } - ] -} diff --git a/tests/data/models/scan/multiple_copies_01-clip_scan.json b/tests/data/models/scan/multiple_copies_01-clip_scan.json deleted file mode 100644 index 767cb5cf..00000000 --- a/tests/data/models/scan/multiple_copies_01-clip_scan.json +++ /dev/null @@ -1,1084 +0,0 @@ -{ - "scancode_notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.", - "scancode_version": "2.2.1", - "scancode_options": { - "--copyright": true, - "--license": true, - "--package": true, - "--info": true, - "--license-score": 0, - "--format": "json-pp" - }, - "files_count": 21, - "files": [ - { - "path": "multiple_copies_01/a", - "type": "directory", - "name": "a", - "base_name": "a", - "extension": "", - "date": null, - "size": 800, - "sha1": null, - "md5": null, - "files_count": 4, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [], - "licenses": [], - "copyrights": [], - "packages": [] - }, - { - "path": "multiple_copies_01/a_copy", - "type": "directory", - "name": "a_copy", - "base_name": "a_copy", - "extension": "", - "date": null, - "size": 800, - "sha1": null, - "md5": null, - "files_count": 4, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [], - "licenses": [], - "copyrights": [], - "packages": [] - }, - { - "path": "multiple_copies_01/a_nested_copy", - "type": "directory", - "name": "a_nested_copy", - "base_name": "a_nested_copy", - "extension": "", - "date": null, - "size": 800, - "sha1": null, - "md5": null, - "files_count": 4, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [], - "licenses": [], - "copyrights": [], - "packages": [] - }, - { - "path": "multiple_copies_01/b", - "type": "directory", - "name": "b", - "base_name": "b", - "extension": "", - "date": null, - "size": 800, - "sha1": null, - "md5": null, - "files_count": 4, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [], - "licenses": [], - "copyrights": [], - "packages": [] - }, - { - "path": "multiple_copies_01/a/a1.py", - "type": "file", - "name": "a1.py", - "base_name": "a1", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "84b647771481d39dd3a53f6dc210c26abac37748", - "md5": "3cb56efa7140478458dbaa2b30239845", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/a/a2.py", - "type": "file", - "name": "a2.py", - "base_name": "a2", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "310797523e47db8481aeb06f1634317285115091", - "md5": "19efdad483f68bc9997a5c1f7ba41b26", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/a/a3.py", - "type": "file", - "name": "a3.py", - "base_name": "a3", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "fd5d3589c825f448546d7dcec36da3e567d35fe9", - "md5": "795ff2cae8ece792a9bfebe18ad3c8e6", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/a/a4.py", - "type": "file", - "name": "a4.py", - "base_name": "a4", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "6f71666c46446c29d3f45feef5419ae76fb86a5b", - "md5": "fc403815d6605df989414ff40a64ea17", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/a_copy/a1.py", - "type": "file", - "name": "a1.py", - "base_name": "a1", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "84b647771481d39dd3a53f6dc210c26abac37748", - "md5": "3cb56efa7140478458dbaa2b30239845", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/a_copy/a2.py", - "type": "file", - "name": "a2.py", - "base_name": "a2", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "310797523e47db8481aeb06f1634317285115091", - "md5": "19efdad483f68bc9997a5c1f7ba41b26", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/a_copy/a3.py", - "type": "file", - "name": "a3.py", - "base_name": "a3", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "fd5d3589c825f448546d7dcec36da3e567d35fe9", - "md5": "795ff2cae8ece792a9bfebe18ad3c8e6", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/a_copy/a4.py", - "type": "file", - "name": "a4.py", - "base_name": "a4", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "6f71666c46446c29d3f45feef5419ae76fb86a5b", - "md5": "fc403815d6605df989414ff40a64ea17", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/a_nested_copy/level_2", - "type": "directory", - "name": "level_2", - "base_name": "level_2", - "extension": "", - "date": null, - "size": 800, - "sha1": null, - "md5": null, - "files_count": 4, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [], - "licenses": [], - "copyrights": [], - "packages": [] - }, - { - "path": "multiple_copies_01/a_nested_copy/level_2/a1.py", - "type": "file", - "name": "a1.py", - "base_name": "a1", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "84b647771481d39dd3a53f6dc210c26abac37748", - "md5": "3cb56efa7140478458dbaa2b30239845", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/a_nested_copy/level_2/a2.py", - "type": "file", - "name": "a2.py", - "base_name": "a2", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "310797523e47db8481aeb06f1634317285115091", - "md5": "19efdad483f68bc9997a5c1f7ba41b26", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/a_nested_copy/level_2/a3.py", - "type": "file", - "name": "a3.py", - "base_name": "a3", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "fd5d3589c825f448546d7dcec36da3e567d35fe9", - "md5": "795ff2cae8ece792a9bfebe18ad3c8e6", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/a_nested_copy/level_2/a4.py", - "type": "file", - "name": "a4.py", - "base_name": "a4", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "6f71666c46446c29d3f45feef5419ae76fb86a5b", - "md5": "fc403815d6605df989414ff40a64ea17", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/b/b1.py", - "type": "file", - "name": "b1.py", - "base_name": "b1", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "70f6ce80985578b5104db0abc578cf5a05e78f4b", - "md5": "af9e9420c6c5b2b0ca74e96bf7c1a2f4", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/b/b2.py", - "type": "file", - "name": "b2.py", - "base_name": "b2", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "3340d86b1da9323067db8022f86dc97cfccee1d0", - "md5": "74ce2b26cebb32670634270dde1fdf33", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/b/b3.py", - "type": "file", - "name": "b3.py", - "base_name": "b3", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "e49d4463662414bee5ad2d2e5c1fbd704f33b84e", - "md5": "8d458f54d32959b03dff37ef485b29c6", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/b/b4.py", - "type": "file", - "name": "b4.py", - "base_name": "b4", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "98c9e6bed78b1513c28e666016cb35a50708c36e", - "md5": "c3559aef44883a46e007ab01213091cb", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - } - ] -} diff --git a/tests/data/utils/load-files-simple-new.json b/tests/data/utils/load-files-simple-new.json deleted file mode 100644 index 28133939..00000000 --- a/tests/data/utils/load-files-simple-new.json +++ /dev/null @@ -1,958 +0,0 @@ -{ - "scancode_notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.", - "scancode_version": "2.2.1.post12.6d07756e", - "scancode_options": { - "--info": true, - "--license-score": 0, - "--format": "json-pp" - }, - "files_count": 43, - "files": [ - { - "path": "samples/README", - "type": "file", - "name": "README", - "base_name": "README", - "extension": "", - "date": "2017-09-22", - "size": 236, - "sha1": "2e07e32c52d607204fad196052d70e3d18fb8636", - "md5": "effc6856ef85a9250fb1a470792b3f38", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/screenshot.png", - "type": "file", - "name": "screenshot.png", - "base_name": "screenshot", - "extension": ".png", - "date": "2017-09-22", - "size": 622754, - "sha1": "01ff4b1de0bc6c75c9cca6e46c80c1802d6976d4", - "md5": "b6ef5a90777147423c98b42a6a25e57a", - "files_count": null, - "mime_type": "image/png", - "file_type": "PNG image data, 2880 x 1666, 8-bit/color RGB, non-interlaced", - "programming_language": null, - "is_binary": true, - "is_text": false, - "is_archive": false, - "is_media": true, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/arch", - "type": "directory", - "name": "arch", - "base_name": "arch", - "extension": "", - "date": null, - "size": 28103, - "sha1": null, - "md5": null, - "files_count": 1, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups", - "type": "directory", - "name": "JGroups", - "base_name": "JGroups", - "extension": "", - "date": null, - "size": 241228, - "sha1": null, - "md5": null, - "files_count": 14, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib", - "type": "directory", - "name": "zlib", - "base_name": "zlib", - "extension": "", - "date": null, - "size": 268762, - "sha1": null, - "md5": null, - "files_count": 16, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/arch/zlib.tar.gz", - "type": "file", - "name": "zlib.tar.gz", - "base_name": "zlib", - "extension": ".tar.gz", - "date": "2017-09-22", - "size": 28103, - "sha1": "576f0ccfe534d7f5ff5d6400078d3c6586de3abd", - "md5": "20b2370751abfc08bb3556c1d8114b5a", - "files_count": null, - "mime_type": "application/x-gzip", - "file_type": "gzip compressed data, last modified: Wed Jul 15 09:08:19 2015, from Unix", - "programming_language": null, - "is_binary": true, - "is_text": false, - "is_archive": true, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/EULA", - "type": "file", - "name": "EULA", - "base_name": "EULA", - "extension": "", - "date": "2017-09-22", - "size": 8156, - "sha1": "eb232aa0424eca9c4136904e6143b72aaa9cf4de", - "md5": "0be0aceb8296727efff0ac0bf8e6bdb3", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "JavaScript+Lasso", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/LICENSE", - "type": "file", - "name": "LICENSE", - "base_name": "LICENSE", - "extension": "", - "date": "2017-09-22", - "size": 26430, - "sha1": "e60c2e780886f95df9c9ee36992b8edabec00bcc", - "md5": "7fbc338309ac38fefcd64b04bb903e34", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/licenses", - "type": "directory", - "name": "licenses", - "base_name": "licenses", - "extension": "", - "date": null, - "size": 54552, - "sha1": null, - "md5": null, - "files_count": 5, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src", - "type": "directory", - "name": "src", - "base_name": "src", - "extension": "", - "date": null, - "size": 152090, - "sha1": null, - "md5": null, - "files_count": 7, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/licenses/apache-1.1.txt", - "type": "file", - "name": "apache-1.1.txt", - "base_name": "apache-1.1", - "extension": ".txt", - "date": "2017-09-22", - "size": 2885, - "sha1": "6b5608d35c3e304532af43db8bbfc5947bef46a6", - "md5": "276982197c941f4cbf3d218546e17ae2", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/licenses/apache-2.0.txt", - "type": "file", - "name": "apache-2.0.txt", - "base_name": "apache-2.0", - "extension": ".txt", - "date": "2017-09-22", - "size": 11560, - "sha1": "47b573e3824cd5e02a1a3ae99e2735b49e0256e4", - "md5": "d273d63619c9aeaf15cdaf76422c4f87", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/licenses/bouncycastle.txt", - "type": "file", - "name": "bouncycastle.txt", - "base_name": "bouncycastle", - "extension": ".txt", - "date": "2017-09-22", - "size": 1186, - "sha1": "74facb0e9a734479f9cd893b5be3fe1bf651b760", - "md5": "9fffd8de865a5705969f62b128381f85", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/licenses/cpl-1.0.txt", - "type": "file", - "name": "cpl-1.0.txt", - "base_name": "cpl-1.0", - "extension": ".txt", - "date": "2017-09-22", - "size": 11987, - "sha1": "681cf776bcd79752543d42490ec7ed22a29fd888", - "md5": "9a6d2c9ae73d59eb3dd38e3909750d14", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/licenses/lgpl.txt", - "type": "file", - "name": "lgpl.txt", - "base_name": "lgpl", - "extension": ".txt", - "date": "2017-09-22", - "size": 26934, - "sha1": "8f1a637d2e2ed1bdb9eb01a7dccb5c12cc0557e1", - "md5": "f14599a2f089f6ff8c97e2baa4e3d575", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/FixedMembershipToken.java", - "type": "file", - "name": "FixedMembershipToken.java", - "base_name": "FixedMembershipToken", - "extension": ".java", - "date": "2017-09-22", - "size": 5144, - "sha1": "5901f73dcc78155a1a2c7b5663a3a11fba400b19", - "md5": "aca9640ec8beee21b098bcf8ecc91442", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/GuardedBy.java", - "type": "file", - "name": "GuardedBy.java", - "base_name": "GuardedBy", - "extension": ".java", - "date": "2017-09-22", - "size": 813, - "sha1": "981d67087e65e9a44957c026d4b10817cf77d966", - "md5": "c5064400f759d3e81771005051d17dc1", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/ImmutableReference.java", - "type": "file", - "name": "ImmutableReference.java", - "base_name": "ImmutableReference", - "extension": ".java", - "date": "2017-09-22", - "size": 1838, - "sha1": "30f56b876d5576d9869e2c5c509b08db57110592", - "md5": "48ca3c72fb9a65c771a321222f118b88", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/RATE_LIMITER.java", - "type": "file", - "name": "RATE_LIMITER.java", - "base_name": "RATE_LIMITER", - "extension": ".java", - "date": "2017-09-22", - "size": 3692, - "sha1": "a8087e5d50da3273536ebda9b87b77aa4ff55deb", - "md5": "4626bdbc48871b55513e1a12991c61a8", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/RouterStub.java", - "type": "file", - "name": "RouterStub.java", - "base_name": "RouterStub", - "extension": ".java", - "date": "2017-09-22", - "size": 9913, - "sha1": "c1f6818f8ee7bddcc9f444bc94c099729d716d52", - "md5": "eecfe23494acbcd8088c93bc1e83c7f2", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/RouterStubManager.java", - "type": "file", - "name": "RouterStubManager.java", - "base_name": "RouterStubManager", - "extension": ".java", - "date": "2017-09-22", - "size": 8162, - "sha1": "eb419dc94cfe11ca318a3e743a7f9f080e70c751", - "md5": "20bee9631b7c82a45c250e095352aec7", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/S3_PING.java", - "type": "file", - "name": "S3_PING.java", - "base_name": "S3_PING", - "extension": ".java", - "date": "2017-09-22", - "size": 122528, - "sha1": "08dba9986f69719970ead3592dc565465164df0d", - "md5": "83d8324f37d0e3f120bc89865cf0bd39", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/adler32.c", - "type": "file", - "name": "adler32.c", - "base_name": "adler32", - "extension": ".c", - "date": "2017-09-22", - "size": 4968, - "sha1": "0cff4808476ce0b5f6f0ebbc69ee2ab2a0eebe43", - "md5": "ae3bbb54820e1d49fb90cbba222e973f", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/deflate.c", - "type": "file", - "name": "deflate.c", - "base_name": "deflate", - "extension": ".c", - "date": "2017-09-22", - "size": 71476, - "sha1": "7b4ace6d698c5dbbfb9a8f047f63228ca54d2e77", - "md5": "cd7826278ce9d9d9ed5abdefef50c3e2", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/deflate.h", - "type": "file", - "name": "deflate.h", - "base_name": "deflate", - "extension": ".h", - "date": "2017-09-22", - "size": 12774, - "sha1": "29ed3b8ca3927576e5889dea5880ca0052942c7d", - "md5": "7ceae74a13201f14c91623116af169c3", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/zlib.h", - "type": "file", - "name": "zlib.h", - "base_name": "zlib", - "extension": ".h", - "date": "2017-09-22", - "size": 87883, - "sha1": "400d35465f179a4acacb5fe749e6ce20a0bbdb84", - "md5": "64d8a5180bd54ff5452886e4cbb21e14", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/zutil.c", - "type": "file", - "name": "zutil.c", - "base_name": "zutil", - "extension": ".c", - "date": "2017-09-22", - "size": 7414, - "sha1": "e1af709bff21ae0d4331119a7fc4c19f82932043", - "md5": "fff257bc1656eb60fc585a7dc35f963d", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/zutil.h", - "type": "file", - "name": "zutil.h", - "base_name": "zutil", - "extension": ".h", - "date": "2017-09-22", - "size": 6766, - "sha1": "b909d27ef9ce51639f76b7ea6b62721e7d1b6bf7", - "md5": "04fcfbb961591c9452c4d0fd1525ffdf", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/ada", - "type": "directory", - "name": "ada", - "base_name": "ada", - "extension": "", - "date": null, - "size": 13594, - "sha1": null, - "md5": null, - "files_count": 1, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/dotzlib", - "type": "directory", - "name": "dotzlib", - "base_name": "dotzlib", - "extension": "", - "date": null, - "size": 14257, - "sha1": null, - "md5": null, - "files_count": 4, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/gcc_gvmat64", - "type": "directory", - "name": "gcc_gvmat64", - "base_name": "gcc_gvmat64", - "extension": "", - "date": null, - "size": 16413, - "sha1": null, - "md5": null, - "files_count": 1, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/infback9", - "type": "directory", - "name": "infback9", - "base_name": "infback9", - "extension": "", - "date": null, - "size": 23223, - "sha1": null, - "md5": null, - "files_count": 2, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/iostream2", - "type": "directory", - "name": "iostream2", - "base_name": "iostream2", - "extension": "", - "date": null, - "size": 9994, - "sha1": null, - "md5": null, - "files_count": 2, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/ada/zlib.ads", - "type": "file", - "name": "zlib.ads", - "base_name": "zlib", - "extension": ".ads", - "date": "2017-09-22", - "size": 13594, - "sha1": "0245a91806d804bf9f0907a3a001a141e9adb61b", - "md5": "71de2670f2e588b51c62e7f6a9046399", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Ada", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/dotzlib/AssemblyInfo.cs", - "type": "file", - "name": "AssemblyInfo.cs", - "base_name": "AssemblyInfo", - "extension": ".cs", - "date": "2017-09-22", - "size": 2500, - "sha1": "9f1db1177b2e9a014f72bb3cd80be17133e06d16", - "md5": "23d0d7c18846fc31655b6aa89b7c8038", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "C#", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/dotzlib/ChecksumImpl.cs", - "type": "file", - "name": "ChecksumImpl.cs", - "base_name": "ChecksumImpl", - "extension": ".cs", - "date": "2017-09-22", - "size": 8040, - "sha1": "3807a0e24a57b92ea301559cab7307b8eab52c51", - "md5": "d01b3cb2e75da9b15f05b92b42f6bd33", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ISO-8859 text, with CRLF line terminators", - "programming_language": "C#", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/dotzlib/LICENSE_1_0.txt", - "type": "file", - "name": "LICENSE_1_0.txt", - "base_name": "LICENSE_1_0", - "extension": ".txt", - "date": "2017-09-22", - "size": 1359, - "sha1": "892b34f7865d90a6f949f50d95e49625a10bc7f0", - "md5": "81543b22c36f10d20ac9712f8d80ef8d", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/dotzlib/readme.txt", - "type": "file", - "name": "readme.txt", - "base_name": "readme", - "extension": ".txt", - "date": "2017-09-22", - "size": 2358, - "sha1": "b1229b826f0096808628474538cea8fec2922a9b", - "md5": "1f20f3168ee63d90de033edac2ce383c", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/gcc_gvmat64/gvmat64.S", - "type": "file", - "name": "gvmat64.S", - "base_name": "gvmat64", - "extension": ".S", - "date": "2017-09-22", - "size": 16413, - "sha1": "742603cba1af98a1432cc02efb019b1a5760adf2", - "md5": "5e772d7302475e5473d0c4c57b9861e8", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text, with CRLF line terminators", - "programming_language": "GAS", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/infback9/infback9.c", - "type": "file", - "name": "infback9.c", - "base_name": "infback9", - "extension": ".c", - "date": "2017-09-22", - "size": 21629, - "sha1": "17fb362c03755b12f2dda5b12a68cf38162674bd", - "md5": "23ff5edec0817da303cb1294c1e4205c", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/infback9/infback9.h", - "type": "file", - "name": "infback9.h", - "base_name": "infback9", - "extension": ".h", - "date": "2017-09-22", - "size": 1594, - "sha1": "d0486a32b558dcaceded5f0746fad62e680a4734", - "md5": "52b1ed99960d3ed7ed60cd20295e64a8", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/iostream2/zstream.h", - "type": "file", - "name": "zstream.h", - "base_name": "zstream", - "extension": ".h", - "date": "2017-09-22", - "size": 9283, - "sha1": "fca4540d490fff36bb90fd801cf9cd8fc695bb17", - "md5": "a980b61c1e8be68d5cdb1236ba6b43e7", - "files_count": null, - "mime_type": "text/x-c++", - "file_type": "C++ source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/iostream2/zstream_test.cpp", - "type": "file", - "name": "zstream_test.cpp", - "base_name": "zstream_test", - "extension": ".cpp", - "date": "2017-09-22", - "size": 711, - "sha1": "e18a6d55cbbd8b832f8d795530553467e5c74fcf", - "md5": "d32476bde4e6d5f889092fdff6f8cdb0", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C++", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - } - ] -} diff --git a/tests/data/utils/load-files-simple-old.json b/tests/data/utils/load-files-simple-old.json deleted file mode 100644 index 38bc1409..00000000 --- a/tests/data/utils/load-files-simple-old.json +++ /dev/null @@ -1,959 +0,0 @@ -{ - "scancode_notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.", - "scancode_version": "2.2.1.post12.6d07756e", - "scancode_options": { - "--info": true, - "--license-score": 0, - "--full-root": true, - "--format": "json-pp" - }, - "files_count": 43, - "files": [ - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/README", - "type": "file", - "name": "README", - "base_name": "README", - "extension": "", - "date": "2017-09-22", - "size": 236, - "sha1": "2e07e32c52d607204fad196052d70e3d18fb8636", - "md5": "effc6856ef85a9250fb1a470792b3f38", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/screenshot.png", - "type": "file", - "name": "screenshot.png", - "base_name": "screenshot", - "extension": ".png", - "date": "2017-09-22", - "size": 622754, - "sha1": "01ff4b1de0bc6c75c9cca6e46c80c1802d6976d4", - "md5": "b6ef5a90777147423c98b42a6a25e57a", - "files_count": null, - "mime_type": "image/png", - "file_type": "PNG image data, 2880 x 1666, 8-bit/color RGB, non-interlaced", - "programming_language": null, - "is_binary": true, - "is_text": false, - "is_archive": false, - "is_media": true, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/arch", - "type": "directory", - "name": "arch", - "base_name": "arch", - "extension": "", - "date": null, - "size": 28103, - "sha1": null, - "md5": null, - "files_count": 1, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups", - "type": "directory", - "name": "JGroups", - "base_name": "JGroups", - "extension": "", - "date": null, - "size": 241228, - "sha1": null, - "md5": null, - "files_count": 14, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib", - "type": "directory", - "name": "zlib", - "base_name": "zlib", - "extension": "", - "date": null, - "size": 268762, - "sha1": null, - "md5": null, - "files_count": 16, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/arch/zlib.tar.gz", - "type": "file", - "name": "zlib.tar.gz", - "base_name": "zlib", - "extension": ".tar.gz", - "date": "2017-09-22", - "size": 28103, - "sha1": "576f0ccfe534d7f5ff5d6400078d3c6586de3abd", - "md5": "20b2370751abfc08bb3556c1d8114b5a", - "files_count": null, - "mime_type": "application/x-gzip", - "file_type": "gzip compressed data, last modified: Wed Jul 15 09:08:19 2015, from Unix", - "programming_language": null, - "is_binary": true, - "is_text": false, - "is_archive": true, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/EULA", - "type": "file", - "name": "EULA", - "base_name": "EULA", - "extension": "", - "date": "2017-09-22", - "size": 8156, - "sha1": "eb232aa0424eca9c4136904e6143b72aaa9cf4de", - "md5": "0be0aceb8296727efff0ac0bf8e6bdb3", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "JavaScript+Lasso", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/LICENSE", - "type": "file", - "name": "LICENSE", - "base_name": "LICENSE", - "extension": "", - "date": "2017-09-22", - "size": 26430, - "sha1": "e60c2e780886f95df9c9ee36992b8edabec00bcc", - "md5": "7fbc338309ac38fefcd64b04bb903e34", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/licenses", - "type": "directory", - "name": "licenses", - "base_name": "licenses", - "extension": "", - "date": null, - "size": 54552, - "sha1": null, - "md5": null, - "files_count": 5, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src", - "type": "directory", - "name": "src", - "base_name": "src", - "extension": "", - "date": null, - "size": 152090, - "sha1": null, - "md5": null, - "files_count": 7, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/licenses/apache-1.1.txt", - "type": "file", - "name": "apache-1.1.txt", - "base_name": "apache-1.1", - "extension": ".txt", - "date": "2017-09-22", - "size": 2885, - "sha1": "6b5608d35c3e304532af43db8bbfc5947bef46a6", - "md5": "276982197c941f4cbf3d218546e17ae2", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/licenses/apache-2.0.txt", - "type": "file", - "name": "apache-2.0.txt", - "base_name": "apache-2.0", - "extension": ".txt", - "date": "2017-09-22", - "size": 11560, - "sha1": "47b573e3824cd5e02a1a3ae99e2735b49e0256e4", - "md5": "d273d63619c9aeaf15cdaf76422c4f87", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/licenses/bouncycastle.txt", - "type": "file", - "name": "bouncycastle.txt", - "base_name": "bouncycastle", - "extension": ".txt", - "date": "2017-09-22", - "size": 1186, - "sha1": "74facb0e9a734479f9cd893b5be3fe1bf651b760", - "md5": "9fffd8de865a5705969f62b128381f85", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/licenses/cpl-1.0.txt", - "type": "file", - "name": "cpl-1.0.txt", - "base_name": "cpl-1.0", - "extension": ".txt", - "date": "2017-09-22", - "size": 11987, - "sha1": "681cf776bcd79752543d42490ec7ed22a29fd888", - "md5": "9a6d2c9ae73d59eb3dd38e3909750d14", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/licenses/lgpl.txt", - "type": "file", - "name": "lgpl.txt", - "base_name": "lgpl", - "extension": ".txt", - "date": "2017-09-22", - "size": 26934, - "sha1": "8f1a637d2e2ed1bdb9eb01a7dccb5c12cc0557e1", - "md5": "f14599a2f089f6ff8c97e2baa4e3d575", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/FixedMembershipToken.java", - "type": "file", - "name": "FixedMembershipToken.java", - "base_name": "FixedMembershipToken", - "extension": ".java", - "date": "2017-09-22", - "size": 5144, - "sha1": "5901f73dcc78155a1a2c7b5663a3a11fba400b19", - "md5": "aca9640ec8beee21b098bcf8ecc91442", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/GuardedBy.java", - "type": "file", - "name": "GuardedBy.java", - "base_name": "GuardedBy", - "extension": ".java", - "date": "2017-09-22", - "size": 813, - "sha1": "981d67087e65e9a44957c026d4b10817cf77d966", - "md5": "c5064400f759d3e81771005051d17dc1", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/ImmutableReference.java", - "type": "file", - "name": "ImmutableReference.java", - "base_name": "ImmutableReference", - "extension": ".java", - "date": "2017-09-22", - "size": 1838, - "sha1": "30f56b876d5576d9869e2c5c509b08db57110592", - "md5": "48ca3c72fb9a65c771a321222f118b88", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/RATE_LIMITER.java", - "type": "file", - "name": "RATE_LIMITER.java", - "base_name": "RATE_LIMITER", - "extension": ".java", - "date": "2017-09-22", - "size": 3692, - "sha1": "a8087e5d50da3273536ebda9b87b77aa4ff55deb", - "md5": "4626bdbc48871b55513e1a12991c61a8", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/RouterStub.java", - "type": "file", - "name": "RouterStub.java", - "base_name": "RouterStub", - "extension": ".java", - "date": "2017-09-22", - "size": 9913, - "sha1": "c1f6818f8ee7bddcc9f444bc94c099729d716d52", - "md5": "eecfe23494acbcd8088c93bc1e83c7f2", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/RouterStubManager.java", - "type": "file", - "name": "RouterStubManager.java", - "base_name": "RouterStubManager", - "extension": ".java", - "date": "2017-09-22", - "size": 8162, - "sha1": "eb419dc94cfe11ca318a3e743a7f9f080e70c751", - "md5": "20bee9631b7c82a45c250e095352aec7", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/S3_PING.java", - "type": "file", - "name": "S3_PING.java", - "base_name": "S3_PING", - "extension": ".java", - "date": "2017-09-22", - "size": 122528, - "sha1": "08dba9986f69719970ead3592dc565465164df0d", - "md5": "83d8324f37d0e3f120bc89865cf0bd39", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/adler32.c", - "type": "file", - "name": "adler32.c", - "base_name": "adler32", - "extension": ".c", - "date": "2017-09-22", - "size": 4968, - "sha1": "0cff4808476ce0b5f6f0ebbc69ee2ab2a0eebe43", - "md5": "ae3bbb54820e1d49fb90cbba222e973f", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/deflate.c", - "type": "file", - "name": "deflate.c", - "base_name": "deflate", - "extension": ".c", - "date": "2017-09-22", - "size": 71476, - "sha1": "7b4ace6d698c5dbbfb9a8f047f63228ca54d2e77", - "md5": "cd7826278ce9d9d9ed5abdefef50c3e2", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/deflate.h", - "type": "file", - "name": "deflate.h", - "base_name": "deflate", - "extension": ".h", - "date": "2017-09-22", - "size": 12774, - "sha1": "29ed3b8ca3927576e5889dea5880ca0052942c7d", - "md5": "7ceae74a13201f14c91623116af169c3", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/zlib.h", - "type": "file", - "name": "zlib.h", - "base_name": "zlib", - "extension": ".h", - "date": "2017-09-22", - "size": 87883, - "sha1": "400d35465f179a4acacb5fe749e6ce20a0bbdb84", - "md5": "64d8a5180bd54ff5452886e4cbb21e14", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/zutil.c", - "type": "file", - "name": "zutil.c", - "base_name": "zutil", - "extension": ".c", - "date": "2017-09-22", - "size": 7414, - "sha1": "e1af709bff21ae0d4331119a7fc4c19f82932043", - "md5": "fff257bc1656eb60fc585a7dc35f963d", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/zutil.h", - "type": "file", - "name": "zutil.h", - "base_name": "zutil", - "extension": ".h", - "date": "2017-09-22", - "size": 6766, - "sha1": "b909d27ef9ce51639f76b7ea6b62721e7d1b6bf7", - "md5": "04fcfbb961591c9452c4d0fd1525ffdf", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/ada", - "type": "directory", - "name": "ada", - "base_name": "ada", - "extension": "", - "date": null, - "size": 13594, - "sha1": null, - "md5": null, - "files_count": 1, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/dotzlib", - "type": "directory", - "name": "dotzlib", - "base_name": "dotzlib", - "extension": "", - "date": null, - "size": 14257, - "sha1": null, - "md5": null, - "files_count": 4, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/gcc_gvmat64", - "type": "directory", - "name": "gcc_gvmat64", - "base_name": "gcc_gvmat64", - "extension": "", - "date": null, - "size": 16413, - "sha1": null, - "md5": null, - "files_count": 1, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/infback9", - "type": "directory", - "name": "infback9", - "base_name": "infback9", - "extension": "", - "date": null, - "size": 23223, - "sha1": null, - "md5": null, - "files_count": 2, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/iostream2", - "type": "directory", - "name": "iostream2", - "base_name": "iostream2", - "extension": "", - "date": null, - "size": 9994, - "sha1": null, - "md5": null, - "files_count": 2, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/ada/zlib.ads", - "type": "file", - "name": "zlib.ads", - "base_name": "zlib", - "extension": ".ads", - "date": "2017-09-22", - "size": 13594, - "sha1": "0245a91806d804bf9f0907a3a001a141e9adb61b", - "md5": "71de2670f2e588b51c62e7f6a9046399", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Ada", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/dotzlib/AssemblyInfo.cs", - "type": "file", - "name": "AssemblyInfo.cs", - "base_name": "AssemblyInfo", - "extension": ".cs", - "date": "2017-09-22", - "size": 2500, - "sha1": "9f1db1177b2e9a014f72bb3cd80be17133e06d16", - "md5": "23d0d7c18846fc31655b6aa89b7c8038", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "C#", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/dotzlib/ChecksumImpl.cs", - "type": "file", - "name": "ChecksumImpl.cs", - "base_name": "ChecksumImpl", - "extension": ".cs", - "date": "2017-09-22", - "size": 8040, - "sha1": "3807a0e24a57b92ea301559cab7307b8eab52c51", - "md5": "d01b3cb2e75da9b15f05b92b42f6bd33", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ISO-8859 text, with CRLF line terminators", - "programming_language": "C#", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/dotzlib/LICENSE_1_0.txt", - "type": "file", - "name": "LICENSE_1_0.txt", - "base_name": "LICENSE_1_0", - "extension": ".txt", - "date": "2017-09-22", - "size": 1359, - "sha1": "892b34f7865d90a6f949f50d95e49625a10bc7f0", - "md5": "81543b22c36f10d20ac9712f8d80ef8d", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/dotzlib/readme.txt", - "type": "file", - "name": "readme.txt", - "base_name": "readme", - "extension": ".txt", - "date": "2017-09-22", - "size": 2358, - "sha1": "b1229b826f0096808628474538cea8fec2922a9b", - "md5": "1f20f3168ee63d90de033edac2ce383c", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/gcc_gvmat64/gvmat64.S", - "type": "file", - "name": "gvmat64.S", - "base_name": "gvmat64", - "extension": ".S", - "date": "2017-09-22", - "size": 16413, - "sha1": "742603cba1af98a1432cc02efb019b1a5760adf2", - "md5": "5e772d7302475e5473d0c4c57b9861e8", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text, with CRLF line terminators", - "programming_language": "GAS", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/infback9/infback9.c", - "type": "file", - "name": "infback9.c", - "base_name": "infback9", - "extension": ".c", - "date": "2017-09-22", - "size": 21629, - "sha1": "17fb362c03755b12f2dda5b12a68cf38162674bd", - "md5": "23ff5edec0817da303cb1294c1e4205c", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/infback9/infback9.h", - "type": "file", - "name": "infback9.h", - "base_name": "infback9", - "extension": ".h", - "date": "2017-09-22", - "size": 1594, - "sha1": "d0486a32b558dcaceded5f0746fad62e680a4734", - "md5": "52b1ed99960d3ed7ed60cd20295e64a8", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/iostream2/zstream.h", - "type": "file", - "name": "zstream.h", - "base_name": "zstream", - "extension": ".h", - "date": "2017-09-22", - "size": 9283, - "sha1": "fca4540d490fff36bb90fd801cf9cd8fc695bb17", - "md5": "a980b61c1e8be68d5cdb1236ba6b43e7", - "files_count": null, - "mime_type": "text/x-c++", - "file_type": "C++ source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/iostream2/zstream_test.cpp", - "type": "file", - "name": "zstream_test.cpp", - "base_name": "zstream_test", - "extension": ".cpp", - "date": "2017-09-22", - "size": 711, - "sha1": "e18a6d55cbbd8b832f8d795530553467e5c74fcf", - "md5": "d32476bde4e6d5f889092fdff6f8cdb0", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C++", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - } - ] -} diff --git a/tests/data/utils/removed1.csv b/tests/data/utils/removed1.csv deleted file mode 100644 index f37fa136..00000000 --- a/tests/data/utils/removed1.csv +++ /dev/null @@ -1,9 +0,0 @@ -Type of delta,New scan path,Old scan path,new_filename,old_filename,new_sha1,old_sha1,new_size,old_size,new_type,old_type,new_original_path,old_original_path -unchanged,a/a1.py,a/a1.py,a1.py,a1.py,84b647771481d39dd3a53f6dc210c26abac37748,84b647771481d39dd3a53f6dc210c26abac37748,200,200,file,file,codebase_01_1_file_removed/a/a1.py,codebase_01/a/a1.py -unchanged,a/a2.py,a/a2.py,a2.py,a2.py,310797523e47db8481aeb06f1634317285115091,310797523e47db8481aeb06f1634317285115091,200,200,file,file,codebase_01_1_file_removed/a/a2.py,codebase_01/a/a2.py -unchanged,a/a3.py,a/a3.py,a3.py,a3.py,fd5d3589c825f448546d7dcec36da3e567d35fe9,fd5d3589c825f448546d7dcec36da3e567d35fe9,200,200,file,file,codebase_01_1_file_removed/a/a3.py,codebase_01/a/a3.py -unchanged,b/b1.py,b/b1.py,b1.py,b1.py,70f6ce80985578b5104db0abc578cf5a05e78f4b,70f6ce80985578b5104db0abc578cf5a05e78f4b,200,200,file,file,codebase_01_1_file_removed/b/b1.py,codebase_01/b/b1.py -unchanged,b/b2.py,b/b2.py,b2.py,b2.py,3340d86b1da9323067db8022f86dc97cfccee1d0,3340d86b1da9323067db8022f86dc97cfccee1d0,200,200,file,file,codebase_01_1_file_removed/b/b2.py,codebase_01/b/b2.py -unchanged,b/b3.py,b/b3.py,b3.py,b3.py,e49d4463662414bee5ad2d2e5c1fbd704f33b84e,e49d4463662414bee5ad2d2e5c1fbd704f33b84e,200,200,file,file,codebase_01_1_file_removed/b/b3.py,codebase_01/b/b3.py -unchanged,b/b4.py,b/b4.py,b4.py,b4.py,98c9e6bed78b1513c28e666016cb35a50708c36e,98c9e6bed78b1513c28e666016cb35a50708c36e,200,200,file,file,codebase_01_1_file_removed/b/b4.py,codebase_01/b/b4.py -removed,,a/a4.py,,a4.py,,6f71666c46446c29d3f45feef5419ae76fb86a5b,,200,,file,,codebase_01/a/a4.py \ No newline at end of file diff --git a/tests/data/utils/test_file1.json b/tests/data/utils/test_file1.json deleted file mode 100644 index 7f9a4e68..00000000 --- a/tests/data/utils/test_file1.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "path": "file1.txt", - "type": "file", - "name": "file1.txt", - "extension": ".txt", - "date": "2016-11-28", - "size": 20, - "sha1": "26d82f1931cbdbd83c2a6871b2cecd5cbcc8c26b", - "md5": "3de8f8b0dc94b8c2230fab9ec0ba0506", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with no line terminators", - "programming_language": null, - "is_binary": null, - "is_text": true, - "is_archive": null, - "is_media": null, - "is_source": null, - "is_script": null, - "scan_errors": [], - "licenses": [], - "copyrights": [], - "packages": [] -} diff --git a/tests/data/utils/test_file2.json b/tests/data/utils/test_file2.json deleted file mode 100644 index 82b5406e..00000000 --- a/tests/data/utils/test_file2.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "path": "some/path/file1.txt", - "type": "file", - "name": "file1.txt", - "size": "256", - "sha1": "abcd", - "md5": "efgh" -} diff --git a/tests/data/utils/test_file3.json b/tests/data/utils/test_file3.json deleted file mode 100644 index c44dc316..00000000 --- a/tests/data/utils/test_file3.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "path": "some/path/file2.txt", - "type": "file", - "name": "file2.txt", - "size": "512", - "sha1": "12345", - "md5": "67891" -} diff --git a/tests/data/utils/test_file4.json b/tests/data/utils/test_file4.json deleted file mode 100644 index d1865df6..00000000 --- a/tests/data/utils/test_file4.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "path": "some/other/longer/path/file1.txt", - "type": "file", - "name": "file1.txt", - "size": "256", - "sha1": "abcd", - "md5": "efgh" -} diff --git a/tests/test_cli.py b/tests/test_cli.py index 51e46afa..70617262 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -268,8 +268,8 @@ def test_write_csv_1_file_moved_and_added(self): check_csvs(result_file, expected_file) def test_json_output_option_selected_all_selected(self): - new_scan = self.get_test_loc('deltacode/scan_1_file_moved_new.json') - old_scan = self.get_test_loc('deltacode/scan_1_file_moved_old.json') + new_scan = self.get_test_loc('cli/scan_1_file_moved_new.json') + old_scan = self.get_test_loc('cli/scan_1_file_moved_old.json') result_file = self.get_temp_file('json') @@ -384,8 +384,8 @@ def test_json_output_option_selected_all_selected(self): assert unmodified_result == unmodified_expected def test_json_output_option_selected_all_not_selected(self): - new_scan = self.get_test_loc('deltacode/scan_1_file_moved_new.json') - old_scan = self.get_test_loc('deltacode/scan_1_file_moved_old.json') + new_scan = self.get_test_loc('cli/scan_1_file_moved_new.json') + old_scan = self.get_test_loc('cli/scan_1_file_moved_old.json') result_file = self.get_temp_file('json') @@ -463,8 +463,8 @@ def test_json_output_option_selected_all_not_selected(self): assert len(unmodified_result) == 0 def test_csv_output_option_selected_all_selected(self): - new_scan = self.get_test_loc('deltacode/scan_1_file_moved_new.json') - old_scan = self.get_test_loc('deltacode/scan_1_file_moved_old.json') + new_scan = self.get_test_loc('cli/scan_1_file_moved_new.json') + old_scan = self.get_test_loc('cli/scan_1_file_moved_old.json') result_file = self.get_temp_file('.csv') expected_file = self.get_test_loc('cli/1_file_moved.csv') @@ -476,8 +476,8 @@ def test_csv_output_option_selected_all_selected(self): check_csvs(result_file, expected_file) def test_csv_output_option_selected_all_not_selected(self): - new_scan = self.get_test_loc('deltacode/scan_1_file_moved_new.json') - old_scan = self.get_test_loc('deltacode/scan_1_file_moved_old.json') + new_scan = self.get_test_loc('cli/scan_1_file_moved_new.json') + old_scan = self.get_test_loc('cli/scan_1_file_moved_old.json') result_file = self.get_temp_file('.csv') expected_file = self.get_test_loc('cli/1_file_moved_all_not_selected.csv') @@ -489,8 +489,8 @@ def test_csv_output_option_selected_all_not_selected(self): check_csvs(result_file, expected_file) def test_no_output_option_selected_all_selected(self): - new_scan = self.get_test_loc('deltacode/scan_1_file_moved_new.json') - old_scan = self.get_test_loc('deltacode/scan_1_file_moved_old.json') + new_scan = self.get_test_loc('cli/scan_1_file_moved_new.json') + old_scan = self.get_test_loc('cli/scan_1_file_moved_old.json') runner = CliRunner() result = runner.invoke(cli.cli, ['-n', new_scan, '-o', old_scan, '-a']) @@ -537,8 +537,8 @@ def test_no_output_option_selected_all_selected(self): assert '"original_path": "1_file_moved_new/a/a3.py"' in result .output def test_no_output_option_selected_all_not_selected(self): - new_scan = self.get_test_loc('deltacode/scan_1_file_moved_new.json') - old_scan = self.get_test_loc('deltacode/scan_1_file_moved_old.json') + new_scan = self.get_test_loc('cli/scan_1_file_moved_new.json') + old_scan = self.get_test_loc('cli/scan_1_file_moved_old.json') runner = CliRunner() result = runner.invoke(cli.cli, ['-n', new_scan, '-o', old_scan])