1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 13:51:44 +03:00
semantic/test/corpus/diff-summaries/javascript/for-loop-with-in-statement.json
2016-10-11 12:00:34 -04:00

369 lines
13 KiB
JSON

[{
"testCaseDescription": "javascript-for-loop-with-in-statement-insert-test",
"expectedResult": {
"changes": {
"for-loop-with-in-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"name": "for-loop-with-in-statement.js",
"end": [
1,
63
]
}
},
"summary": "Added the 'key in something && i = 0; i < n; i++' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-loop-with-in-statement.js"
],
"sha1": "b0363eb07d0284130aab04183573dcd31fa7f221",
"gitDir": "test/corpus/repos/javascript",
"sha2": "bd70642d89f84aa72ff6781a2b22c82b345ac1d5"
}
,{
"testCaseDescription": "javascript-for-loop-with-in-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"for-loop-with-in-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"name": "for-loop-with-in-statement.js",
"end": [
1,
73
]
}
},
"summary": "Added the 'otherKey in something && i = 0; i < n; i++' for statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"name": "for-loop-with-in-statement.js",
"end": [
2,
63
]
}
},
"summary": "Added the 'key in something && i = 0; i < n; i++' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-loop-with-in-statement.js"
],
"sha1": "bd70642d89f84aa72ff6781a2b22c82b345ac1d5",
"gitDir": "test/corpus/repos/javascript",
"sha2": "337a282c5bfdde568b4b1431a6259fd1e187d897"
}
,{
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-insert-test",
"expectedResult": {
"changes": {
"for-loop-with-in-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
6
],
"name": "for-loop-with-in-statement.js",
"end": [
1,
14
]
},
{
"start": [
1,
6
],
"name": "for-loop-with-in-statement.js",
"end": [
1,
9
]
}
]
},
"summary": "Replaced the 'otherKey' identifier with the 'key' identifier",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
1,
52
],
"name": "for-loop-with-in-statement.js",
"end": [
1,
68
]
},
{
"start": [
1,
47
],
"name": "for-loop-with-in-statement.js",
"end": [
1,
58
]
}
]
},
"summary": "Replaced the 'doOtherSomething' identifier with the 'doSomething' identifier in the doSomething() function call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-loop-with-in-statement.js"
],
"sha1": "337a282c5bfdde568b4b1431a6259fd1e187d897",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b6039e1333c1772e592e7dc27a94de22b1323bb5"
}
,{
"testCaseDescription": "javascript-for-loop-with-in-statement-replacement-test",
"expectedResult": {
"changes": {
"for-loop-with-in-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
6
],
"name": "for-loop-with-in-statement.js",
"end": [
1,
9
]
},
{
"start": [
1,
6
],
"name": "for-loop-with-in-statement.js",
"end": [
1,
14
]
}
]
},
"summary": "Replaced the 'key' identifier with the 'otherKey' identifier",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
1,
47
],
"name": "for-loop-with-in-statement.js",
"end": [
1,
58
]
},
{
"start": [
1,
52
],
"name": "for-loop-with-in-statement.js",
"end": [
1,
68
]
}
]
},
"summary": "Replaced the 'doSomething' identifier with the 'doOtherSomething' identifier in the doOtherSomething() function call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-loop-with-in-statement.js"
],
"sha1": "b6039e1333c1772e592e7dc27a94de22b1323bb5",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0a764d4fa36759c678501ca540fc99713b41420a"
}
,{
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"for-loop-with-in-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "for-loop-with-in-statement.js",
"end": [
1,
73
]
}
},
"summary": "Deleted the 'otherKey in something && i = 0; i < n; i++' for statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"name": "for-loop-with-in-statement.js",
"end": [
2,
63
]
}
},
"summary": "Deleted the 'key in something && i = 0; i < n; i++' for statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"name": "for-loop-with-in-statement.js",
"end": [
2,
73
]
}
},
"summary": "Added the 'otherKey in something && i = 0; i < n; i++' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-loop-with-in-statement.js"
],
"sha1": "0a764d4fa36759c678501ca540fc99713b41420a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9fa99c92ac72ad519a3b1f2b5d93a5537d435a92"
}
,{
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-test",
"expectedResult": {
"changes": {
"for-loop-with-in-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "for-loop-with-in-statement.js",
"end": [
1,
63
]
}
},
"summary": "Deleted the 'key in something && i = 0; i < n; i++' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-loop-with-in-statement.js"
],
"sha1": "9fa99c92ac72ad519a3b1f2b5d93a5537d435a92",
"gitDir": "test/corpus/repos/javascript",
"sha2": "cbc52bfd4415f0b6ade8e057dc28ea23bb4525de"
}
,{
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-rest-test",
"expectedResult": {
"changes": {
"for-loop-with-in-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "for-loop-with-in-statement.js",
"end": [
1,
73
]
}
},
"summary": "Deleted the 'otherKey in something && i = 0; i < n; i++' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-loop-with-in-statement.js"
],
"sha1": "cbc52bfd4415f0b6ade8e057dc28ea23bb4525de",
"gitDir": "test/corpus/repos/javascript",
"sha2": "78d8fd6fdf97f596e0c6c4c7f4a6661bc3ffa357"
}]