1
1
mirror of https://github.com/github/semantic.git synced 2024-12-30 18:36:27 +03:00
semantic/test/corpus/diff-summaries/javascript/var-declaration.json

513 lines
16 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-var-declaration-insert-test",
"expectedResult": {
"changes": {
"var-declaration.js": [
{
"span": {
"that": {
"start": [
1,
5
],
"name": "var-declaration.js",
"end": [
1,
10
]
}
},
"summary": "Added the 'x' variable",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"var-declaration.js"
],
2016-10-11 18:26:57 +03:00
"sha1": "b9adfaa1ed76ab8073a888953b9f52ed07ae901d",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "e7fb4ec50d4b102631cb919440f306001a37e6dc"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-var-declaration-replacement-insert-test",
"expectedResult": {
"changes": {
"var-declaration.js": [
{
"span": {
"that": {
"start": [
1,
5
],
"name": "var-declaration.js",
"end": [
1,
6
]
}
},
"summary": "Added the 'x' variable",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
1,
8
],
"name": "var-declaration.js",
"end": [
1,
14
]
}
},
"summary": "Added the 'y' variable",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
1,
16
],
"name": "var-declaration.js",
"end": [
1,
17
]
}
},
"summary": "Added the 'z' variable",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
2,
5
],
"name": "var-declaration.js",
"end": [
2,
10
]
}
},
"summary": "Added the 'x' variable",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"var-declaration.js"
],
2016-10-11 18:26:57 +03:00
"sha1": "e7fb4ec50d4b102631cb919440f306001a37e6dc",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "64e82b7c2ba46e720224dd265772025e78cb70b7"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-var-declaration-delete-insert-test",
"expectedResult": {
"changes": {
"var-declaration.js": [
{
"span": {
"these": [
{
"start": [
1,
5
],
"name": "var-declaration.js",
"end": [
1,
6
]
},
{
"start": [
1,
5
],
"name": "var-declaration.js",
"end": [
1,
10
]
}
]
},
"summary": "Replaced the 'x' variable with the 'x' variable",
"tag": "JSONSummary"
},
{
"span": {
"this": {
"start": [
1,
8
],
"name": "var-declaration.js",
"end": [
1,
14
]
}
},
"summary": "Deleted the 'y' variable",
"tag": "JSONSummary"
},
{
"span": {
"this": {
"start": [
1,
16
],
"name": "var-declaration.js",
"end": [
1,
17
]
}
},
"summary": "Deleted the 'z' variable",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"var-declaration.js"
],
2016-10-11 18:26:57 +03:00
"sha1": "64e82b7c2ba46e720224dd265772025e78cb70b7",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "483b3edb575f17ee20c8211977b74f5cb16d0be0"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-var-declaration-replacement-test",
"expectedResult": {
"changes": {
"var-declaration.js": [
{
"span": {
"these": [
{
"start": [
1,
5
],
"name": "var-declaration.js",
"end": [
1,
10
]
},
{
"start": [
1,
5
],
"name": "var-declaration.js",
"end": [
1,
6
]
}
]
},
"summary": "Replaced the 'x' variable with the 'x' variable",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
1,
8
],
"name": "var-declaration.js",
"end": [
1,
14
]
}
},
"summary": "Added the 'y' variable",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
1,
16
],
"name": "var-declaration.js",
"end": [
1,
17
]
}
},
"summary": "Added the 'z' variable",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"var-declaration.js"
],
2016-10-11 18:26:57 +03:00
"sha1": "483b3edb575f17ee20c8211977b74f5cb16d0be0",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "205c09348c66d5fece285d675cf454357adb5493"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-var-declaration-delete-replacement-test",
"expectedResult": {
"changes": {
"var-declaration.js": [
{
"span": {
"this": {
"start": [
1,
5
],
"name": "var-declaration.js",
"end": [
1,
6
]
}
},
"summary": "Deleted the 'x' variable",
"tag": "JSONSummary"
},
{
"span": {
"this": {
"start": [
1,
8
],
"name": "var-declaration.js",
"end": [
1,
14
]
}
},
"summary": "Deleted the 'y' variable",
"tag": "JSONSummary"
},
{
"span": {
"this": {
"start": [
1,
16
],
"name": "var-declaration.js",
"end": [
1,
17
]
}
},
"summary": "Deleted the 'z' variable",
"tag": "JSONSummary"
},
{
"span": {
"this": {
"start": [
2,
5
],
"name": "var-declaration.js",
"end": [
2,
10
]
}
},
"summary": "Deleted the 'x' variable",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
2,
5
],
"name": "var-declaration.js",
"end": [
2,
6
]
}
},
"summary": "Added the 'x' variable",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
2,
8
],
"name": "var-declaration.js",
"end": [
2,
14
]
}
},
"summary": "Added the 'y' variable",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
2,
16
],
"name": "var-declaration.js",
"end": [
2,
17
]
}
},
"summary": "Added the 'z' variable",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"var-declaration.js"
],
2016-10-11 18:26:57 +03:00
"sha1": "205c09348c66d5fece285d675cf454357adb5493",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "d7d8aa3680790caf2b3c5140a3bf7dac3db9d341"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-var-declaration-delete-test",
"expectedResult": {
"changes": {
"var-declaration.js": [
{
"span": {
"this": {
"start": [
1,
5
],
"name": "var-declaration.js",
"end": [
1,
10
]
}
},
"summary": "Deleted the 'x' variable",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"var-declaration.js"
],
2016-10-11 18:26:57 +03:00
"sha1": "d7d8aa3680790caf2b3c5140a3bf7dac3db9d341",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "71422bb2b7a22e8005be0975966a8b8aecab9acb"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-var-declaration-delete-rest-test",
"expectedResult": {
"changes": {
"var-declaration.js": [
{
"span": {
"this": {
"start": [
1,
5
],
"name": "var-declaration.js",
"end": [
1,
6
]
}
},
"summary": "Deleted the 'x' variable",
"tag": "JSONSummary"
},
{
"span": {
"this": {
"start": [
1,
8
],
"name": "var-declaration.js",
"end": [
1,
14
]
}
},
"summary": "Deleted the 'y' variable",
"tag": "JSONSummary"
},
{
"span": {
"this": {
"start": [
1,
16
],
"name": "var-declaration.js",
"end": [
1,
17
]
}
},
"summary": "Deleted the 'z' variable",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"var-declaration.js"
],
2016-10-11 18:26:57 +03:00
"sha1": "71422bb2b7a22e8005be0975966a8b8aecab9acb",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "72fe137f23a68d773c76719f790807ead00ef84a"
2016-10-11 18:12:20 +03:00
}]