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

369 lines
12 KiB
JSON

[{
"testCaseDescription": "javascript-while-statement-insert-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "while-statement.js",
"end": [
1,
19
]
}
},
"summary": "Added the 'a' while statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "8f8662bfef010ed6610d7ee5f21efbbcb97f0d22",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3ebecc4c6b3f161b3afb23a002547a8da923e2ac"
}
,{
"testCaseDescription": "javascript-while-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "while-statement.js",
"end": [
1,
19
]
}
},
"summary": "Added the 'b' while statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "while-statement.js",
"end": [
2,
19
]
}
},
"summary": "Added the 'a' while statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "3ebecc4c6b3f161b3afb23a002547a8da923e2ac",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b710fc3829752e0e2f783529cfc728317366ce1d"
}
,{
"testCaseDescription": "javascript-while-statement-delete-insert-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
8
],
"filepath": "while-statement.js",
"end": [
1,
9
]
},
{
"start": [
1,
8
],
"filepath": "while-statement.js",
"end": [
1,
9
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'a' identifier",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
1,
13
],
"filepath": "while-statement.js",
"end": [
1,
14
]
},
{
"start": [
1,
13
],
"filepath": "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": "b710fc3829752e0e2f783529cfc728317366ce1d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "4fdfc8d1995201b17731696441cfb578593d79be"
}
,{
"testCaseDescription": "javascript-while-statement-replacement-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
8
],
"filepath": "while-statement.js",
"end": [
1,
9
]
},
{
"start": [
1,
8
],
"filepath": "while-statement.js",
"end": [
1,
9
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'b' identifier",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
1,
13
],
"filepath": "while-statement.js",
"end": [
1,
14
]
},
{
"start": [
1,
13
],
"filepath": "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": "4fdfc8d1995201b17731696441cfb578593d79be",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d502c2b2c439bdd4887a57a2f08d5a1adeaf7aeb"
}
,{
"testCaseDescription": "javascript-while-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "while-statement.js",
"end": [
1,
19
]
}
},
"summary": "Deleted the 'b' while statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"filepath": "while-statement.js",
"end": [
2,
19
]
}
},
"summary": "Deleted the 'a' while statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "while-statement.js",
"end": [
2,
19
]
}
},
"summary": "Added the 'b' while statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "d502c2b2c439bdd4887a57a2f08d5a1adeaf7aeb",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1f4ec236c271656f96e2114616adbcf96ec49fd2"
}
,{
"testCaseDescription": "javascript-while-statement-delete-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "while-statement.js",
"end": [
1,
19
]
}
},
"summary": "Deleted the 'a' while statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "1f4ec236c271656f96e2114616adbcf96ec49fd2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f75c1b168d8a6440244dcbc2c9551c53095215d6"
}
,{
"testCaseDescription": "javascript-while-statement-delete-rest-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "while-statement.js",
"end": [
1,
19
]
}
},
"summary": "Deleted the 'b' while statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "f75c1b168d8a6440244dcbc2c9551c53095215d6",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0b9cb36a4b22cb0b53f5399d40f90e2732f834a6"
}]