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

369 lines
12 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-while-statement-insert-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
2016-10-11 19:52:26 +03:00
"filepath": "while-statement.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
19
]
}
},
"summary": "Added the 'a' while statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "8f8662bfef010ed6610d7ee5f21efbbcb97f0d22",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "3ebecc4c6b3f161b3afb23a002547a8da923e2ac"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-while-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
2016-10-11 19:52:26 +03:00
"filepath": "while-statement.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
19
]
}
},
"summary": "Added the 'b' while statement",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
2016-10-11 19:52:26 +03:00
"filepath": "while-statement.js",
2016-10-11 18:12:20 +03:00
"end": [
2,
19
]
}
},
"summary": "Added the 'a' while statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "3ebecc4c6b3f161b3afb23a002547a8da923e2ac",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "b710fc3829752e0e2f783529cfc728317366ce1d"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-while-statement-delete-insert-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
8
],
2016-10-11 19:52:26 +03:00
"filepath": "while-statement.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
9
]
},
{
"start": [
1,
8
],
2016-10-11 19:52:26 +03:00
"filepath": "while-statement.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
9
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'a' identifier",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
13
],
2016-10-11 19:52:26 +03:00
"filepath": "while-statement.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
14
]
},
{
"start": [
1,
13
],
2016-10-11 19:52:26 +03:00
"filepath": "while-statement.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
14
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'b' identifier in the b() function call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "b710fc3829752e0e2f783529cfc728317366ce1d",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "4fdfc8d1995201b17731696441cfb578593d79be"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-while-statement-replacement-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
8
],
2016-10-11 19:52:26 +03:00
"filepath": "while-statement.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
9
]
},
{
"start": [
1,
8
],
2016-10-11 19:52:26 +03:00
"filepath": "while-statement.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
9
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'b' identifier",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
13
],
2016-10-11 19:52:26 +03:00
"filepath": "while-statement.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
14
]
},
{
"start": [
1,
13
],
2016-10-11 19:52:26 +03:00
"filepath": "while-statement.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
14
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'a' identifier in the a() function call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "4fdfc8d1995201b17731696441cfb578593d79be",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "d502c2b2c439bdd4887a57a2f08d5a1adeaf7aeb"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-while-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
2016-10-11 19:52:26 +03:00
"filepath": "while-statement.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
19
]
}
},
"summary": "Deleted the 'b' while statement",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
2016-10-11 19:52:26 +03:00
"filepath": "while-statement.js",
2016-10-11 18:12:20 +03:00
"end": [
2,
19
]
}
},
"summary": "Deleted the 'a' while statement",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
2016-10-11 19:52:26 +03:00
"filepath": "while-statement.js",
2016-10-11 18:12:20 +03:00
"end": [
2,
19
]
}
},
"summary": "Added the 'b' while statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "d502c2b2c439bdd4887a57a2f08d5a1adeaf7aeb",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "1f4ec236c271656f96e2114616adbcf96ec49fd2"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-while-statement-delete-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
2016-10-11 19:52:26 +03:00
"filepath": "while-statement.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
19
]
}
},
"summary": "Deleted the 'a' while statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "1f4ec236c271656f96e2114616adbcf96ec49fd2",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "f75c1b168d8a6440244dcbc2c9551c53095215d6"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-while-statement-delete-rest-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
2016-10-11 19:52:26 +03:00
"filepath": "while-statement.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
19
]
}
},
"summary": "Deleted the 'b' while statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "f75c1b168d8a6440244dcbc2c9551c53095215d6",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "0b9cb36a4b22cb0b53f5399d40f90e2732f834a6"
2016-10-11 18:12:20 +03:00
}]