mirror of
https://github.com/github/semantic.git
synced 2024-12-21 13:51:44 +03:00
309 lines
9.7 KiB
JSON
309 lines
9.7 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-arrow-function-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"arrow-function.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "arrow-function.js",
|
|
"end": [
|
|
1,
|
|
24
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an anonymous(f, g) function",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"arrow-function.js"
|
|
],
|
|
"sha1": "292d11c2e4263aedc5c5b54a527d686428f8ddd1",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "6a7893d2e94099cd9fedb01b582e7ad4ff73e89d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-arrow-function-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"arrow-function.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "arrow-function.js",
|
|
"end": [
|
|
1,
|
|
24
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an anonymous(f, g) function",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "arrow-function.js",
|
|
"end": [
|
|
2,
|
|
24
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an anonymous(f, g) function",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"arrow-function.js"
|
|
],
|
|
"sha1": "6a7893d2e94099cd9fedb01b582e7ad4ff73e89d",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "227e3fdb0b43676bfc752f04d14dc5c0c318f630"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-arrow-function-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"arrow-function.js": [
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
20
|
|
],
|
|
"name": "arrow-function.js",
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
20
|
|
],
|
|
"name": "arrow-function.js",
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'g' identifier with the 'h' identifier",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"arrow-function.js"
|
|
],
|
|
"sha1": "227e3fdb0b43676bfc752f04d14dc5c0c318f630",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f093d99e79a285d5a41bb100fb86ff73e104d2fa"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-arrow-function-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"arrow-function.js": [
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
20
|
|
],
|
|
"name": "arrow-function.js",
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
20
|
|
],
|
|
"name": "arrow-function.js",
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'h' identifier with the 'g' identifier",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"arrow-function.js"
|
|
],
|
|
"sha1": "f093d99e79a285d5a41bb100fb86ff73e104d2fa",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "dfa11dd0f9237b75f84ec26830f0159b15391da9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-arrow-function-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"arrow-function.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "arrow-function.js",
|
|
"end": [
|
|
1,
|
|
24
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an anonymous(f, g) function",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "arrow-function.js",
|
|
"end": [
|
|
2,
|
|
24
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an anonymous(f, g) function",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "arrow-function.js",
|
|
"end": [
|
|
2,
|
|
24
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an anonymous(f, g) function",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"arrow-function.js"
|
|
],
|
|
"sha1": "dfa11dd0f9237b75f84ec26830f0159b15391da9",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c0519b34f3408fc82a1f2baa7b7b48dbde82ead0"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-arrow-function-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"arrow-function.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "arrow-function.js",
|
|
"end": [
|
|
1,
|
|
24
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an anonymous(f, g) function",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"arrow-function.js"
|
|
],
|
|
"sha1": "c0519b34f3408fc82a1f2baa7b7b48dbde82ead0",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e03369240a62811722d7d08730e3302d97c22f3f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-arrow-function-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"arrow-function.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "arrow-function.js",
|
|
"end": [
|
|
1,
|
|
24
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an anonymous(f, g) function",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"arrow-function.js"
|
|
],
|
|
"sha1": "e03369240a62811722d7d08730e3302d97c22f3f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ea881b604fbd6a7bff63837b413fbb2878da9525"
|
|
}]
|