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/while-statement.json
2016-10-11 11:12:20 -04:00

369 lines
12 KiB
JSON

[{
"testCaseDescription": "javascript-while-statement-insert-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"that": {
"start": [
1,
1
],
"name": "while-statement.js",
"end": [
1,
19
]
}
},
"summary": "Added the 'a' while statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "4baec39517b6fe2e913b63502b66c0f5bb4ad2cc",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9e37955434527f912890ae216acc3ae299622141"
}
,{
"testCaseDescription": "javascript-while-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"that": {
"start": [
1,
1
],
"name": "while-statement.js",
"end": [
1,
19
]
}
},
"summary": "Added the 'b' while statement",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
2,
1
],
"name": "while-statement.js",
"end": [
2,
19
]
}
},
"summary": "Added the 'a' while statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "9e37955434527f912890ae216acc3ae299622141",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f7b70918071a6521eaef2c5be1b3ac9720841446"
}
,{
"testCaseDescription": "javascript-while-statement-delete-insert-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"these": [
{
"start": [
1,
8
],
"name": "while-statement.js",
"end": [
1,
9
]
},
{
"start": [
1,
8
],
"name": "while-statement.js",
"end": [
1,
9
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'a' identifier",
"tag": "JSONSummary"
},
{
"span": {
"these": [
{
"start": [
1,
13
],
"name": "while-statement.js",
"end": [
1,
14
]
},
{
"start": [
1,
13
],
"name": "while-statement.js",
"end": [
1,
14
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'b' identifier in the b() function call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "f7b70918071a6521eaef2c5be1b3ac9720841446",
"gitDir": "test/corpus/repos/javascript",
"sha2": "29c8ebffa11db7289ab51f57efd175f77bd733bd"
}
,{
"testCaseDescription": "javascript-while-statement-replacement-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"these": [
{
"start": [
1,
8
],
"name": "while-statement.js",
"end": [
1,
9
]
},
{
"start": [
1,
8
],
"name": "while-statement.js",
"end": [
1,
9
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'b' identifier",
"tag": "JSONSummary"
},
{
"span": {
"these": [
{
"start": [
1,
13
],
"name": "while-statement.js",
"end": [
1,
14
]
},
{
"start": [
1,
13
],
"name": "while-statement.js",
"end": [
1,
14
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'a' identifier in the a() function call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "29c8ebffa11db7289ab51f57efd175f77bd733bd",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f4d194f2e3d461c76413a90b0d2313ca005b9dfc"
}
,{
"testCaseDescription": "javascript-while-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "while-statement.js",
"end": [
1,
19
]
}
},
"summary": "Deleted the 'b' while statement",
"tag": "JSONSummary"
},
{
"span": {
"this": {
"start": [
2,
1
],
"name": "while-statement.js",
"end": [
2,
19
]
}
},
"summary": "Deleted the 'a' while statement",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
2,
1
],
"name": "while-statement.js",
"end": [
2,
19
]
}
},
"summary": "Added the 'b' while statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "f4d194f2e3d461c76413a90b0d2313ca005b9dfc",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a04a222d36c3f3af7c33b093cc2478968ae3651e"
}
,{
"testCaseDescription": "javascript-while-statement-delete-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "while-statement.js",
"end": [
1,
19
]
}
},
"summary": "Deleted the 'a' while statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "a04a222d36c3f3af7c33b093cc2478968ae3651e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "72f779a1fb746477acef381391603e40efb5ff43"
}
,{
"testCaseDescription": "javascript-while-statement-delete-rest-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "while-statement.js",
"end": [
1,
19
]
}
},
"summary": "Deleted the 'b' while statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "72f779a1fb746477acef381391603e40efb5ff43",
"gitDir": "test/corpus/repos/javascript",
"sha2": "2991c8cdbe1144d3164c0fc0075cb5388e06583b"
}]