1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
semantic/test/corpus/diff-summaries/javascript/math-operator.json

369 lines
12 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-math-operator-insert-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
2016-10-11 19:52:26 +03:00
"filepath": "math-operator.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
18
]
}
},
"summary": "Added the 'i + j * 3 - j % 5' math operator",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"sha1": "2583ff8eb54838a4bae616ec1c051ebfc0c6b21c",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "64a4ce3ce9b3fa2c5eb7f1262197328f488bed3b"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-math-operator-replacement-insert-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
2016-10-11 19:52:26 +03:00
"filepath": "math-operator.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
18
]
}
},
"summary": "Added the 'i + j * 2 - j % 4' math operator",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
2016-10-11 19:52:26 +03:00
"filepath": "math-operator.js",
2016-10-11 18:12:20 +03:00
"end": [
2,
18
]
}
},
"summary": "Added the 'i + j * 3 - j % 5' math operator",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"sha1": "64a4ce3ce9b3fa2c5eb7f1262197328f488bed3b",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "f4374903c814a2fb2c715e9dd3f61bc86a39373a"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-math-operator-delete-insert-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
9
],
2016-10-11 19:52:26 +03:00
"filepath": "math-operator.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
10
]
},
{
"start": [
1,
9
],
2016-10-11 19:52:26 +03:00
"filepath": "math-operator.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
10
]
}
]
},
"summary": "Replaced '2' with '3'",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
17
],
2016-10-11 19:52:26 +03:00
"filepath": "math-operator.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
18
]
},
{
"start": [
1,
17
],
2016-10-11 19:52:26 +03:00
"filepath": "math-operator.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
18
]
}
]
},
"summary": "Replaced '4' with '5'",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"sha1": "f4374903c814a2fb2c715e9dd3f61bc86a39373a",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "abcb678e0cde4b601c58cc5d02a312833ccae59c"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-math-operator-replacement-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
9
],
2016-10-11 19:52:26 +03:00
"filepath": "math-operator.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
10
]
},
{
"start": [
1,
9
],
2016-10-11 19:52:26 +03:00
"filepath": "math-operator.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
10
]
}
]
},
"summary": "Replaced '3' with '2'",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
17
],
2016-10-11 19:52:26 +03:00
"filepath": "math-operator.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
18
]
},
{
"start": [
1,
17
],
2016-10-11 19:52:26 +03:00
"filepath": "math-operator.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
18
]
}
]
},
"summary": "Replaced '5' with '4'",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"sha1": "abcb678e0cde4b601c58cc5d02a312833ccae59c",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "b2f3e1b498736c5ccf5978bd038257f754486853"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-math-operator-delete-replacement-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
2016-10-11 19:52:26 +03:00
"filepath": "math-operator.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
18
]
}
},
"summary": "Deleted the 'i + j * 2 - j % 4' math operator",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
2016-10-11 19:52:26 +03:00
"filepath": "math-operator.js",
2016-10-11 18:12:20 +03:00
"end": [
2,
18
]
}
},
"summary": "Deleted the 'i + j * 3 - j % 5' math operator",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
2016-10-11 19:52:26 +03:00
"filepath": "math-operator.js",
2016-10-11 18:12:20 +03:00
"end": [
2,
18
]
}
},
"summary": "Added the 'i + j * 2 - j % 4' math operator",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"sha1": "b2f3e1b498736c5ccf5978bd038257f754486853",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "25f392b16a9459b195c5f08a4a3417f10c42ee43"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-math-operator-delete-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
2016-10-11 19:52:26 +03:00
"filepath": "math-operator.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
18
]
}
},
"summary": "Deleted the 'i + j * 3 - j % 5' math operator",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"sha1": "25f392b16a9459b195c5f08a4a3417f10c42ee43",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "7dc3ffdbdbc87605365fab5e4604971e2d35f66c"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-math-operator-delete-rest-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
2016-10-11 19:52:26 +03:00
"filepath": "math-operator.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
18
]
}
},
"summary": "Deleted the 'i + j * 2 - j % 4' math operator",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"sha1": "7dc3ffdbdbc87605365fab5e4604971e2d35f66c",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "5e5d08f5cc6ce83a5663d10215511b13bddd76e3"
2016-10-11 18:12:20 +03:00
}]