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/objects-with-methods.json

287 lines
8.8 KiB
JSON
Raw Normal View History

2016-10-28 04:44:36 +03:00
[{
"testCaseDescription": "javascript-objects-with-methods-insert-test",
"expectedResult": {
"changes": {
"objects-with-methods.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Added the '{ add }' object"
}
]
},
"errors": {}
},
"filePaths": [
"objects-with-methods.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "8662f58f1d7ce21fddcefecae990742a5d1398dc",
2016-10-28 04:44:36 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "b591df548ffb5ef563a30246d6492b39fb69a564"
2016-10-28 04:44:36 +03:00
}
,{
"testCaseDescription": "javascript-objects-with-methods-replacement-insert-test",
"expectedResult": {
"changes": {
"objects-with-methods.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
37
]
}
},
"summary": "Added the '{ subtract }' object"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
32
]
}
},
"summary": "Added the '{ add }' object"
}
]
},
"errors": {}
},
"filePaths": [
"objects-with-methods.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "b591df548ffb5ef563a30246d6492b39fb69a564",
2016-10-28 04:44:36 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "ee23a64bc6c8edd4994205c77bf77a35bcb40493"
2016-10-28 04:44:36 +03:00
}
,{
"testCaseDescription": "javascript-objects-with-methods-delete-insert-test",
"expectedResult": {
"changes": {
"objects-with-methods.js": [
{
"span": {
"replace": [
{
"start": [
1,
3
],
"end": [
1,
11
]
},
{
"start": [
1,
3
],
"end": [
1,
6
]
}
]
},
"summary": "Replaced the 'subtract' identifier with the 'add' identifier in the add method"
}
]
},
"errors": {}
},
"filePaths": [
"objects-with-methods.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "ee23a64bc6c8edd4994205c77bf77a35bcb40493",
2016-10-28 04:44:36 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "5afe59e01be0dfa586cf09188b26b97960e84b71"
2016-10-28 04:44:36 +03:00
}
,{
"testCaseDescription": "javascript-objects-with-methods-replacement-test",
"expectedResult": {
"changes": {
"objects-with-methods.js": [
{
"span": {
"replace": [
{
"start": [
1,
3
],
"end": [
1,
6
]
},
{
"start": [
1,
3
],
"end": [
1,
11
]
}
]
},
"summary": "Replaced the 'add' identifier with the 'subtract' identifier in the subtract method"
}
]
},
"errors": {}
},
"filePaths": [
"objects-with-methods.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "5afe59e01be0dfa586cf09188b26b97960e84b71",
2016-10-28 04:44:36 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "3723264ddcbd5d252f20a04e13f2813874ea7a75"
2016-10-28 04:44:36 +03:00
}
,{
"testCaseDescription": "javascript-objects-with-methods-delete-replacement-test",
"expectedResult": {
"changes": {
"objects-with-methods.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
37
]
}
},
"summary": "Deleted the '{ subtract }' object"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
32
]
}
},
"summary": "Deleted the '{ add }' object"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
37
]
}
},
"summary": "Added the '{ subtract }' object"
}
]
},
"errors": {}
},
"filePaths": [
"objects-with-methods.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "3723264ddcbd5d252f20a04e13f2813874ea7a75",
2016-10-28 04:44:36 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "f2e3bfb506337dbb81c078e49bfca3c4d72abefa"
2016-10-28 04:44:36 +03:00
}
,{
"testCaseDescription": "javascript-objects-with-methods-delete-test",
"expectedResult": {
"changes": {
"objects-with-methods.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Deleted the '{ add }' object"
}
]
},
"errors": {}
},
"filePaths": [
"objects-with-methods.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "f2e3bfb506337dbb81c078e49bfca3c4d72abefa",
2016-10-28 04:44:36 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "59aab91326ae0dbd9332b64ea11a42f940b4437f"
2016-10-28 04:44:36 +03:00
}
,{
"testCaseDescription": "javascript-objects-with-methods-delete-rest-test",
"expectedResult": {
"changes": {
"objects-with-methods.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
37
]
}
},
"summary": "Deleted the '{ subtract }' object"
}
]
},
"errors": {}
},
"filePaths": [
"objects-with-methods.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "59aab91326ae0dbd9332b64ea11a42f940b4437f",
2016-10-28 04:44:36 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "ee6b3d5d274912c071eadd10cb5bea9b96b30cb8"
2016-10-28 04:44:36 +03:00
}]