1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/javascript/object-with-methods.json
2016-10-14 12:19:31 -04:00

287 lines
8.8 KiB
JSON

[{
"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"
],
"sha1": "35b4689cd0ad0f58c2cf2e8dead15d9abefbe207",
"gitDir": "test/corpus/repos/javascript",
"sha2": "261c88f3063d52b84a5c4e583446644c9e11e24a"
}
,{
"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"
],
"sha1": "261c88f3063d52b84a5c4e583446644c9e11e24a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "545491171b4d1330df4470705eb28bdde85f40c0"
}
,{
"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"
],
"sha1": "545491171b4d1330df4470705eb28bdde85f40c0",
"gitDir": "test/corpus/repos/javascript",
"sha2": "29e0f810e72e0f175f8957142088b3ec0a179017"
}
,{
"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"
],
"sha1": "29e0f810e72e0f175f8957142088b3ec0a179017",
"gitDir": "test/corpus/repos/javascript",
"sha2": "326ccb44e6ea0cc8a2e340ed637fbd24a8e683b1"
}
,{
"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"
],
"sha1": "326ccb44e6ea0cc8a2e340ed637fbd24a8e683b1",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ad6f59e2c73d21145f4609499610a5a3d96513ba"
}
,{
"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"
],
"sha1": "ad6f59e2c73d21145f4609499610a5a3d96513ba",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e0e2892207a25d7c1a176ad0ec9d58f9281ca1da"
}
,{
"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"
],
"sha1": "e0e2892207a25d7c1a176ad0ec9d58f9281ca1da",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e43540c8124aad861bcbb7e7fddb9a102d896194"
}]