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

369 lines
13 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-for-loop-with-in-statement-insert-test",
"expectedResult": {
"changes": {
"for-loop-with-in-statement.js": [
{
"span": {
"that": {
"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"
],
2016-10-11 18:26:57 +03:00
"sha1": "312b5471c29b4f453f6c99ef1d2b0192b8075191",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "737c5203d4608c368579f6972a34df1ae804037a"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-for-loop-with-in-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"for-loop-with-in-statement.js": [
{
"span": {
"that": {
"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": {
"that": {
"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"
],
2016-10-11 18:26:57 +03:00
"sha1": "737c5203d4608c368579f6972a34df1ae804037a",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "4c777e89f1e9772f566cd5f163e9065c67eb3e59"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-insert-test",
"expectedResult": {
"changes": {
"for-loop-with-in-statement.js": [
{
"span": {
"these": [
{
"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": {
"these": [
{
"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"
],
2016-10-11 18:26:57 +03:00
"sha1": "4c777e89f1e9772f566cd5f163e9065c67eb3e59",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "65a3a5c3cdd175168e8b86559dff2915718dfa82"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-for-loop-with-in-statement-replacement-test",
"expectedResult": {
"changes": {
"for-loop-with-in-statement.js": [
{
"span": {
"these": [
{
"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": {
"these": [
{
"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"
],
2016-10-11 18:26:57 +03:00
"sha1": "65a3a5c3cdd175168e8b86559dff2915718dfa82",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "75d9025eb499683a7dabdbf36451a364d19fa48b"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"for-loop-with-in-statement.js": [
{
"span": {
"this": {
"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": {
"this": {
"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": {
"that": {
"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"
],
2016-10-11 18:26:57 +03:00
"sha1": "75d9025eb499683a7dabdbf36451a364d19fa48b",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "5041bf027b4df79e923ee65f98cf74575c5bd185"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-test",
"expectedResult": {
"changes": {
"for-loop-with-in-statement.js": [
{
"span": {
"this": {
"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"
],
2016-10-11 18:26:57 +03:00
"sha1": "5041bf027b4df79e923ee65f98cf74575c5bd185",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "8dffc803eab5d37b821f227e27ab2a628c4e79c6"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-rest-test",
"expectedResult": {
"changes": {
"for-loop-with-in-statement.js": [
{
"span": {
"this": {
"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"
],
2016-10-11 18:26:57 +03:00
"sha1": "8dffc803eab5d37b821f227e27ab2a628c4e79c6",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "da728273440e826c2fe2b916bce916b15b943590"
2016-10-11 18:12:20 +03:00
}]