mirror of
https://github.com/github/semantic.git
synced 2024-12-21 22:01:46 +03:00
297 lines
9.0 KiB
JSON
297 lines
9.0 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-function-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
31
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an anonymous(arg1, arg2) function",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function.js"
|
|
],
|
|
"sha1": "67cbf8843e0286f8dda242b238d30efab57d6790",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "2717b5aa509e14dfd94842eea00ca66111a015be"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
31
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an anonymous(arg1, arg2) function",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
31
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an anonymous(arg1, arg2) function",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function.js"
|
|
],
|
|
"sha1": "2717b5aa509e14dfd94842eea00ca66111a015be",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f98962b37651faa3154d25fe2828a12df02992d8"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
24
|
|
],
|
|
"end": [
|
|
1,
|
|
28
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
24
|
|
],
|
|
"end": [
|
|
1,
|
|
28
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'arg1' identifier with the 'arg2' identifier",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function.js"
|
|
],
|
|
"sha1": "f98962b37651faa3154d25fe2828a12df02992d8",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "2b9d37d0871a1c8f0a50842e50cab572f55d07db"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
24
|
|
],
|
|
"end": [
|
|
1,
|
|
28
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
24
|
|
],
|
|
"end": [
|
|
1,
|
|
28
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'arg2' identifier with the 'arg1' identifier",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function.js"
|
|
],
|
|
"sha1": "2b9d37d0871a1c8f0a50842e50cab572f55d07db",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "1bec33037691d4c4d97117aa1a1550a1a0d3113f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
31
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an anonymous(arg1, arg2) function",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
31
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an anonymous(arg1, arg2) function",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
31
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an anonymous(arg1, arg2) function",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function.js"
|
|
],
|
|
"sha1": "1bec33037691d4c4d97117aa1a1550a1a0d3113f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "189c17d7869e4ec45865288472d5616e6f934389"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
31
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an anonymous(arg1, arg2) function",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function.js"
|
|
],
|
|
"sha1": "189c17d7869e4ec45865288472d5616e6f934389",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "54e8366ab2c4558cf28dd50f6939ae84738caa6c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
31
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an anonymous(arg1, arg2) function",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function.js"
|
|
],
|
|
"sha1": "54e8366ab2c4558cf28dd50f6939ae84738caa6c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ea75c493779d6c65e44c59733f6073e0be814d0b"
|
|
}]
|