mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +03:00
369 lines
12 KiB
JSON
369 lines
12 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-math-operator-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"math-operator.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "math-operator.js",
|
|
"end": [
|
|
1,
|
|
18
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'i + j * 3 - j % 5' math operator",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"math-operator.js"
|
|
],
|
|
"sha1": "2583ff8eb54838a4bae616ec1c051ebfc0c6b21c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "64a4ce3ce9b3fa2c5eb7f1262197328f488bed3b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-math-operator-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"math-operator.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "math-operator.js",
|
|
"end": [
|
|
1,
|
|
18
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'i + j * 2 - j % 4' math operator",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"filepath": "math-operator.js",
|
|
"end": [
|
|
2,
|
|
18
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'i + j * 3 - j % 5' math operator",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"math-operator.js"
|
|
],
|
|
"sha1": "64a4ce3ce9b3fa2c5eb7f1262197328f488bed3b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f4374903c814a2fb2c715e9dd3f61bc86a39373a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-math-operator-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"math-operator.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"filepath": "math-operator.js",
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"filepath": "math-operator.js",
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '2' with '3'",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
17
|
|
],
|
|
"filepath": "math-operator.js",
|
|
"end": [
|
|
1,
|
|
18
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
17
|
|
],
|
|
"filepath": "math-operator.js",
|
|
"end": [
|
|
1,
|
|
18
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '4' with '5'",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"math-operator.js"
|
|
],
|
|
"sha1": "f4374903c814a2fb2c715e9dd3f61bc86a39373a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "abcb678e0cde4b601c58cc5d02a312833ccae59c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-math-operator-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"math-operator.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"filepath": "math-operator.js",
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"filepath": "math-operator.js",
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '3' with '2'",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
17
|
|
],
|
|
"filepath": "math-operator.js",
|
|
"end": [
|
|
1,
|
|
18
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
17
|
|
],
|
|
"filepath": "math-operator.js",
|
|
"end": [
|
|
1,
|
|
18
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '5' with '4'",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"math-operator.js"
|
|
],
|
|
"sha1": "abcb678e0cde4b601c58cc5d02a312833ccae59c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b2f3e1b498736c5ccf5978bd038257f754486853"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-math-operator-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"math-operator.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "math-operator.js",
|
|
"end": [
|
|
1,
|
|
18
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'i + j * 2 - j % 4' math operator",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"filepath": "math-operator.js",
|
|
"end": [
|
|
2,
|
|
18
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'i + j * 3 - j % 5' math operator",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"filepath": "math-operator.js",
|
|
"end": [
|
|
2,
|
|
18
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'i + j * 2 - j % 4' math operator",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"math-operator.js"
|
|
],
|
|
"sha1": "b2f3e1b498736c5ccf5978bd038257f754486853",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "25f392b16a9459b195c5f08a4a3417f10c42ee43"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-math-operator-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"math-operator.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "math-operator.js",
|
|
"end": [
|
|
1,
|
|
18
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'i + j * 3 - j % 5' math operator",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"math-operator.js"
|
|
],
|
|
"sha1": "25f392b16a9459b195c5f08a4a3417f10c42ee43",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "7dc3ffdbdbc87605365fab5e4604971e2d35f66c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-math-operator-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"math-operator.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "math-operator.js",
|
|
"end": [
|
|
1,
|
|
18
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'i + j * 2 - j % 4' math operator",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"math-operator.js"
|
|
],
|
|
"sha1": "7dc3ffdbdbc87605365fab5e4604971e2d35f66c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "5e5d08f5cc6ce83a5663d10215511b13bddd76e3"
|
|
}]
|