mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
341 lines
11 KiB
JSON
341 lines
11 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-for-loop-with-in-statement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-loop-with-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
63
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'key in something && i = 0; i < n; i++' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-loop-with-in-statement.js"
|
|
],
|
|
"sha1": "d42f86b317b470d5207108107a9710b5a66b7693",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "71e0fa7e41a874b0a5d718c95f074ace55cc9232"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-loop-with-in-statement-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-loop-with-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
73
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'otherKey in something && i = 0; i < n; i++' for statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
63
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'key in something && i = 0; i < n; i++' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-loop-with-in-statement.js"
|
|
],
|
|
"sha1": "71e0fa7e41a874b0a5d718c95f074ace55cc9232",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "6bac9b37cf2cf093c337582d9de14afa128fed17"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-loop-with-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"end": [
|
|
1,
|
|
14
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"end": [
|
|
1,
|
|
9
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'otherKey' identifier with the 'key' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
52
|
|
],
|
|
"end": [
|
|
1,
|
|
68
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
47
|
|
],
|
|
"end": [
|
|
1,
|
|
58
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'doOtherSomething' identifier with the 'doSomething' identifier in the doSomething() function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-loop-with-in-statement.js"
|
|
],
|
|
"sha1": "6bac9b37cf2cf093c337582d9de14afa128fed17",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "149bca27f95242b5072ce36f019f298a300f97d3"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-loop-with-in-statement-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-loop-with-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"end": [
|
|
1,
|
|
9
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"end": [
|
|
1,
|
|
14
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'key' identifier with the 'otherKey' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
47
|
|
],
|
|
"end": [
|
|
1,
|
|
58
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
52
|
|
],
|
|
"end": [
|
|
1,
|
|
68
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'doSomething' identifier with the 'doOtherSomething' identifier in the doOtherSomething() function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-loop-with-in-statement.js"
|
|
],
|
|
"sha1": "149bca27f95242b5072ce36f019f298a300f97d3",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "0a7c075c24681bfa818dffe5a91a41c59d533fcc"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-loop-with-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
73
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'otherKey in something && i = 0; i < n; i++' for statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
63
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'key in something && i = 0; i < n; i++' for statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
73
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'otherKey in something && i = 0; i < n; i++' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-loop-with-in-statement.js"
|
|
],
|
|
"sha1": "0a7c075c24681bfa818dffe5a91a41c59d533fcc",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9ecf6acc87328e9ca74836a467411d20838ceeae"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-loop-with-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
63
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'key in something && i = 0; i < n; i++' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-loop-with-in-statement.js"
|
|
],
|
|
"sha1": "9ecf6acc87328e9ca74836a467411d20838ceeae",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e1f719858553a9e12274fec57ae67a38a67719b3"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-loop-with-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
73
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'otherKey in something && i = 0; i < n; i++' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-loop-with-in-statement.js"
|
|
],
|
|
"sha1": "e1f719858553a9e12274fec57ae67a38a67719b3",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f9d31193b2e0de3664fd90baf4bf0f036eed7805"
|
|
}]
|