1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00
semantic/test/corpus/diff-summaries/javascript/for-in-statement.json

429 lines
14 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-for-in-statement-insert-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
"that": {
"start": [
1,
1
],
"name": "for-in-statement.js",
"end": [
1,
35
]
}
},
"summary": "Added the 'thing in things' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
2016-10-11 18:26:57 +03:00
"sha1": "67dfbd7b45236e87dcd260ea7ac3c14b307c474f",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "19dc2045717a1f9514c2499039d442ab79bfd4a6"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-for-in-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
"that": {
"start": [
1,
1
],
"name": "for-in-statement.js",
"end": [
1,
32
]
}
},
"summary": "Added the 'item in items' for statement",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
2,
1
],
"name": "for-in-statement.js",
"end": [
2,
35
]
}
},
"summary": "Added the 'thing in things' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
2016-10-11 18:26:57 +03:00
"sha1": "19dc2045717a1f9514c2499039d442ab79bfd4a6",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "7395f4cca91248937b82d2fc067af9df623531b2"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-for-in-statement-delete-insert-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
"these": [
{
"start": [
1,
6
],
"name": "for-in-statement.js",
"end": [
1,
10
]
},
{
"start": [
1,
6
],
"name": "for-in-statement.js",
"end": [
1,
11
]
}
]
},
"summary": "Replaced the 'item' identifier with the 'thing' identifier",
"tag": "JSONSummary"
},
{
"span": {
"these": [
{
"start": [
1,
14
],
"name": "for-in-statement.js",
"end": [
1,
19
]
},
{
"start": [
1,
15
],
"name": "for-in-statement.js",
"end": [
1,
21
]
}
]
},
"summary": "Replaced the 'items' identifier with the 'things' identifier",
"tag": "JSONSummary"
},
{
"span": {
"these": [
{
"start": [
1,
23
],
"name": "for-in-statement.js",
"end": [
1,
27
]
},
{
"start": [
1,
25
],
"name": "for-in-statement.js",
"end": [
1,
30
]
}
]
},
"summary": "Replaced the 'item' identifier with the 'thing' identifier in the thing() function call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
2016-10-11 18:26:57 +03:00
"sha1": "7395f4cca91248937b82d2fc067af9df623531b2",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "894b6a15cc88919d0447f0fac7474905e8d3a47a"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-for-in-statement-replacement-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
"these": [
{
"start": [
1,
6
],
"name": "for-in-statement.js",
"end": [
1,
11
]
},
{
"start": [
1,
6
],
"name": "for-in-statement.js",
"end": [
1,
10
]
}
]
},
"summary": "Replaced the 'thing' identifier with the 'item' identifier",
"tag": "JSONSummary"
},
{
"span": {
"these": [
{
"start": [
1,
15
],
"name": "for-in-statement.js",
"end": [
1,
21
]
},
{
"start": [
1,
14
],
"name": "for-in-statement.js",
"end": [
1,
19
]
}
]
},
"summary": "Replaced the 'things' identifier with the 'items' identifier",
"tag": "JSONSummary"
},
{
"span": {
"these": [
{
"start": [
1,
25
],
"name": "for-in-statement.js",
"end": [
1,
30
]
},
{
"start": [
1,
23
],
"name": "for-in-statement.js",
"end": [
1,
27
]
}
]
},
"summary": "Replaced the 'thing' identifier with the 'item' identifier in the item() function call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
2016-10-11 18:26:57 +03:00
"sha1": "894b6a15cc88919d0447f0fac7474905e8d3a47a",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "441fa10580c23888485006cbf55fab3d45c7174a"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-for-in-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "for-in-statement.js",
"end": [
1,
32
]
}
},
"summary": "Deleted the 'item in items' for statement",
"tag": "JSONSummary"
},
{
"span": {
"this": {
"start": [
2,
1
],
"name": "for-in-statement.js",
"end": [
2,
35
]
}
},
"summary": "Deleted the 'thing in things' for statement",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
2,
1
],
"name": "for-in-statement.js",
"end": [
2,
32
]
}
},
"summary": "Added the 'item in items' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
2016-10-11 18:26:57 +03:00
"sha1": "441fa10580c23888485006cbf55fab3d45c7174a",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "c0fe338eebebf02a5e8565dbd13c703b61fcba53"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-for-in-statement-delete-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "for-in-statement.js",
"end": [
1,
35
]
}
},
"summary": "Deleted the 'thing in things' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
2016-10-11 18:26:57 +03:00
"sha1": "c0fe338eebebf02a5e8565dbd13c703b61fcba53",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "0706b7a9ebeff341744499a50b6d8731ce528c28"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-for-in-statement-delete-rest-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "for-in-statement.js",
"end": [
1,
32
]
}
},
"summary": "Deleted the 'item in items' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
2016-10-11 18:26:57 +03:00
"sha1": "0706b7a9ebeff341744499a50b6d8731ce528c28",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "0ce3d1634f59a931d031cceac08ce3ea5e009bcd"
2016-10-11 18:12:20 +03:00
}]