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/member-access.json
2016-10-14 12:19:31 -04:00

287 lines
8.8 KiB
JSON

[{
"testCaseDescription": "javascript-member-access-insert-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
15
]
}
},
"summary": "Added the 'x.someProperty' member access"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"sha1": "90d12a1298d9b772784e930e48f21a67e0c3511b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "dd02dbf53dd13d9778613a76514fee8fbd957c73"
}
,{
"testCaseDescription": "javascript-member-access-replacement-insert-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
20
]
}
},
"summary": "Added the 'x.someOtherProperty' member access"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
15
]
}
},
"summary": "Added the 'x.someProperty' member access"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"sha1": "dd02dbf53dd13d9778613a76514fee8fbd957c73",
"gitDir": "test/corpus/repos/javascript",
"sha2": "188fdfa273d5893a248a5a376f6bc5048de79cb8"
}
,{
"testCaseDescription": "javascript-member-access-delete-insert-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"replace": [
{
"start": [
1,
3
],
"end": [
1,
20
]
},
{
"start": [
1,
3
],
"end": [
1,
15
]
}
]
},
"summary": "Replaced the 'someOtherProperty' identifier with the 'someProperty' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"sha1": "188fdfa273d5893a248a5a376f6bc5048de79cb8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "bb2fbdc481ae1aaef2c1976384c40c6977855612"
}
,{
"testCaseDescription": "javascript-member-access-replacement-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"replace": [
{
"start": [
1,
3
],
"end": [
1,
15
]
},
{
"start": [
1,
3
],
"end": [
1,
20
]
}
]
},
"summary": "Replaced the 'someProperty' identifier with the 'someOtherProperty' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"sha1": "bb2fbdc481ae1aaef2c1976384c40c6977855612",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a193af5a18c05a57c0e127005eacdfb1bb9bbb8b"
}
,{
"testCaseDescription": "javascript-member-access-delete-replacement-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
20
]
}
},
"summary": "Deleted the 'x.someOtherProperty' member access"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
15
]
}
},
"summary": "Deleted the 'x.someProperty' member access"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
20
]
}
},
"summary": "Added the 'x.someOtherProperty' member access"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"sha1": "a193af5a18c05a57c0e127005eacdfb1bb9bbb8b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "4c30cb38360a173cda4e75322f4af325fa4a62b4"
}
,{
"testCaseDescription": "javascript-member-access-delete-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
15
]
}
},
"summary": "Deleted the 'x.someProperty' member access"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"sha1": "4c30cb38360a173cda4e75322f4af325fa4a62b4",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e5dd9eed617575c0ce2036dfd7d35c1cef72046b"
}
,{
"testCaseDescription": "javascript-member-access-delete-rest-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
20
]
}
},
"summary": "Deleted the 'x.someOtherProperty' member access"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"sha1": "e5dd9eed617575c0ce2036dfd7d35c1cef72046b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "5614bab5690b85e7b159534b75f4e49496e339cd"
}]