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/for-loop-with-in-statement.json
2016-10-11 12:52:26 -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
],
"filepath": "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": "2713efa83046b111f22730202b3db5213732e388",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d0d4e80ab5e1000adc85ca2ae3ef5c308ba058e5"
}
,{
"testCaseDescription": "javascript-for-loop-with-in-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"for-loop-with-in-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "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
],
"filepath": "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": "d0d4e80ab5e1000adc85ca2ae3ef5c308ba058e5",
"gitDir": "test/corpus/repos/javascript",
"sha2": "22b27eed20a4708f57655fac41373782e765bdd9"
}
,{
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-insert-test",
"expectedResult": {
"changes": {
"for-loop-with-in-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
6
],
"filepath": "for-loop-with-in-statement.js",
"end": [
1,
14
]
},
{
"start": [
1,
6
],
"filepath": "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
],
"filepath": "for-loop-with-in-statement.js",
"end": [
1,
68
]
},
{
"start": [
1,
47
],
"filepath": "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": "22b27eed20a4708f57655fac41373782e765bdd9",
"gitDir": "test/corpus/repos/javascript",
"sha2": "752138dea1fa4b37d532668dfdb80c1de9dbe984"
}
,{
"testCaseDescription": "javascript-for-loop-with-in-statement-replacement-test",
"expectedResult": {
"changes": {
"for-loop-with-in-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
6
],
"filepath": "for-loop-with-in-statement.js",
"end": [
1,
9
]
},
{
"start": [
1,
6
],
"filepath": "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
],
"filepath": "for-loop-with-in-statement.js",
"end": [
1,
58
]
},
{
"start": [
1,
52
],
"filepath": "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": "752138dea1fa4b37d532668dfdb80c1de9dbe984",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d4746a1fc6b915b1f3039637c8525ddd1fe3e7ea"
}
,{
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"for-loop-with-in-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "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
],
"filepath": "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
],
"filepath": "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": "d4746a1fc6b915b1f3039637c8525ddd1fe3e7ea",
"gitDir": "test/corpus/repos/javascript",
"sha2": "175e3c87a4f60bcc38fa14c26df38f489e34d707"
}
,{
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-test",
"expectedResult": {
"changes": {
"for-loop-with-in-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "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": "175e3c87a4f60bcc38fa14c26df38f489e34d707",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d683d2247eafa64957f62abd7cf4bddeccba9e48"
}
,{
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-rest-test",
"expectedResult": {
"changes": {
"for-loop-with-in-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "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": "d683d2247eafa64957f62abd7cf4bddeccba9e48",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1775d9c8a22836c57a2a9883aac27bb0d16f14c4"
}]