mirror of
https://github.com/github/semantic.git
synced 2024-12-27 08:54:14 +03:00
429 lines
14 KiB
JSON
429 lines
14 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-for-in-statement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "for-in-statement.js",
|
|
"end": [
|
|
1,
|
|
35
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'thing in things' for statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-in-statement.js"
|
|
],
|
|
"sha1": "e9fcb09c83fad74eddeca9ca622366a53a55888b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "cb63b2c22210e3c6fc67c0cf62a76236aa023b2b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-in-statement-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "for-in-statement.js",
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'item in items' for statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"filepath": "for-in-statement.js",
|
|
"end": [
|
|
2,
|
|
35
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'thing in things' for statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-in-statement.js"
|
|
],
|
|
"sha1": "cb63b2c22210e3c6fc67c0cf62a76236aa023b2b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "fc7099de96759e8a9b1c25c1f362d985aa32aceb"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-in-statement-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"filepath": "for-in-statement.js",
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"filepath": "for-in-statement.js",
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'item' identifier with the 'thing' identifier",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
14
|
|
],
|
|
"filepath": "for-in-statement.js",
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
15
|
|
],
|
|
"filepath": "for-in-statement.js",
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'items' identifier with the 'things' identifier",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
23
|
|
],
|
|
"filepath": "for-in-statement.js",
|
|
"end": [
|
|
1,
|
|
27
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
25
|
|
],
|
|
"filepath": "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"
|
|
],
|
|
"sha1": "fc7099de96759e8a9b1c25c1f362d985aa32aceb",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "7b1f62adaf598bdc63c501b5f6e9a38b7895442d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-in-statement-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"filepath": "for-in-statement.js",
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"filepath": "for-in-statement.js",
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'thing' identifier with the 'item' identifier",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
15
|
|
],
|
|
"filepath": "for-in-statement.js",
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
14
|
|
],
|
|
"filepath": "for-in-statement.js",
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'things' identifier with the 'items' identifier",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
25
|
|
],
|
|
"filepath": "for-in-statement.js",
|
|
"end": [
|
|
1,
|
|
30
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
23
|
|
],
|
|
"filepath": "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"
|
|
],
|
|
"sha1": "7b1f62adaf598bdc63c501b5f6e9a38b7895442d",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c16de6d4fe5ec69f259db76c8e998d417da9e961"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-in-statement-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "for-in-statement.js",
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'item in items' for statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"filepath": "for-in-statement.js",
|
|
"end": [
|
|
2,
|
|
35
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'thing in things' for statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"filepath": "for-in-statement.js",
|
|
"end": [
|
|
2,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'item in items' for statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-in-statement.js"
|
|
],
|
|
"sha1": "c16de6d4fe5ec69f259db76c8e998d417da9e961",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f336fb995c12c39b8e3df68a0cb67022ea149f7d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-in-statement-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "for-in-statement.js",
|
|
"end": [
|
|
1,
|
|
35
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'thing in things' for statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-in-statement.js"
|
|
],
|
|
"sha1": "f336fb995c12c39b8e3df68a0cb67022ea149f7d",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9b37944073bb49efd933e0884ccd6b8c1071f803"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-in-statement-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "for-in-statement.js",
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'item in items' for statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-in-statement.js"
|
|
],
|
|
"sha1": "9b37944073bb49efd933e0884ccd6b8c1071f803",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "aa8be129d06030fa7cb344ba9e16f5ad9eff8e47"
|
|
}]
|