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": "c472c259ecd41e6617d5cbfbc65b2bd86a3e142c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "83b04c688d092243e2f38910a8366d514db5743c"
|
|
}
|
|
,{
|
|
"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": "83b04c688d092243e2f38910a8366d514db5743c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "08ee23b9a9c5db516f1a98911e6c6622c433259d"
|
|
}
|
|
,{
|
|
"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": "08ee23b9a9c5db516f1a98911e6c6622c433259d",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "80115d79267aa7d3d9a31c9bd3d8d6666a6fd10f"
|
|
}
|
|
,{
|
|
"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": "80115d79267aa7d3d9a31c9bd3d8d6666a6fd10f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f63d84ca262b4fb8cfa2ea84f0c28cf92390ffa8"
|
|
}
|
|
,{
|
|
"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": "f63d84ca262b4fb8cfa2ea84f0c28cf92390ffa8",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "4c393da00a0bfedce7f8caeb08dd8efc0ba9ce2c"
|
|
}
|
|
,{
|
|
"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": "4c393da00a0bfedce7f8caeb08dd8efc0ba9ce2c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "4b37c7ed446f7af7f9d6aa850f5866d6aa89b192"
|
|
}
|
|
,{
|
|
"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": "4b37c7ed446f7af7f9d6aa850f5866d6aa89b192",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "6873cc4611d175edc365bf419d65f1b5e25bb44d"
|
|
}]
|