1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00
semantic/test/corpus/diff-summaries/javascript/var-declaration.json
2016-10-11 11:26:57 -04:00

513 lines
16 KiB
JSON

[{
"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"
],
"sha1": "b9adfaa1ed76ab8073a888953b9f52ed07ae901d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e7fb4ec50d4b102631cb919440f306001a37e6dc"
}
,{
"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"
],
"sha1": "e7fb4ec50d4b102631cb919440f306001a37e6dc",
"gitDir": "test/corpus/repos/javascript",
"sha2": "64e82b7c2ba46e720224dd265772025e78cb70b7"
}
,{
"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"
],
"sha1": "64e82b7c2ba46e720224dd265772025e78cb70b7",
"gitDir": "test/corpus/repos/javascript",
"sha2": "483b3edb575f17ee20c8211977b74f5cb16d0be0"
}
,{
"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"
],
"sha1": "483b3edb575f17ee20c8211977b74f5cb16d0be0",
"gitDir": "test/corpus/repos/javascript",
"sha2": "205c09348c66d5fece285d675cf454357adb5493"
}
,{
"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"
],
"sha1": "205c09348c66d5fece285d675cf454357adb5493",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d7d8aa3680790caf2b3c5140a3bf7dac3db9d341"
}
,{
"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"
],
"sha1": "d7d8aa3680790caf2b3c5140a3bf7dac3db9d341",
"gitDir": "test/corpus/repos/javascript",
"sha2": "71422bb2b7a22e8005be0975966a8b8aecab9acb"
}
,{
"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"
],
"sha1": "71422bb2b7a22e8005be0975966a8b8aecab9acb",
"gitDir": "test/corpus/repos/javascript",
"sha2": "72fe137f23a68d773c76719f790807ead00ef84a"
}]