mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
383 lines
11 KiB
JSON
383 lines
11 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-comma-operator-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comma-operator.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
8
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'b' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comma-operator.js"
|
|
],
|
|
"sha1": "e64ae9d5e5e9c36c61d46fc5a3205f970d0356d8",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e84c69ce819954d96c86ec0f2f7b3bbce6384be5"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comma-operator-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comma-operator.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'c' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
8
|
|
],
|
|
"end": [
|
|
2,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'b' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comma-operator.js"
|
|
],
|
|
"sha1": "e84c69ce819954d96c86ec0f2f7b3bbce6384be5",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "6a58d584c7382ef31f27c34ee841325135d6b9bc"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comma-operator-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comma-operator.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
8
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'b' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comma-operator.js"
|
|
],
|
|
"sha1": "6a58d584c7382ef31f27c34ee841325135d6b9bc",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "47f10b92df5bf03c3256eb913e8fc6e97c326453"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comma-operator-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comma-operator.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'c' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
8
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'b' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comma-operator.js"
|
|
],
|
|
"sha1": "47f10b92df5bf03c3256eb913e8fc6e97c326453",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "3b28011e6ebe3b6056cc4e73cf53bad55350603f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comma-operator-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comma-operator.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
8
|
|
],
|
|
"end": [
|
|
2,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'b' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'c' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comma-operator.js"
|
|
],
|
|
"sha1": "3b28011e6ebe3b6056cc4e73cf53bad55350603f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "65d631dce57c217e10941764380477241a3f4ac2"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comma-operator-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comma-operator.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
8
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'b' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comma-operator.js"
|
|
],
|
|
"sha1": "65d631dce57c217e10941764380477241a3f4ac2",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "6d9d2eefc06326a88fda19bd5e3bbc58731aa887"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comma-operator-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comma-operator.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comma-operator.js"
|
|
],
|
|
"sha1": "6d9d2eefc06326a88fda19bd5e3bbc58731aa887",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "546367ee497592b174f80ccf5d825d6ff2367833"
|
|
}]
|