1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 06:11:49 +03:00
semantic/test/corpus/diff-summaries/javascript/member-access.json

297 lines
9.2 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-member-access-insert-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
15
]
}
},
"summary": "Added the 'x.someProperty' member access",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "34dda706308957a43236571644aff6e35d5ed5c8",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "229478a3867e3a976746a8e8e30e79ed9383d47b"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-member-access-replacement-insert-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
20
]
}
},
"summary": "Added the 'x.someOtherProperty' member access",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
15
]
}
},
"summary": "Added the 'x.someProperty' member access",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "229478a3867e3a976746a8e8e30e79ed9383d47b",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "77a6c524dc810aef2a026ada74ae51db6401d399"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-member-access-delete-insert-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
3
],
"end": [
1,
20
]
},
{
"start": [
1,
3
],
"end": [
1,
15
]
}
]
},
"summary": "Replaced the 'someOtherProperty' identifier with the 'someProperty' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "77a6c524dc810aef2a026ada74ae51db6401d399",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "a24d2c73c061cc1124a76c8d53d324f6d8d56b1b"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-member-access-replacement-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
3
],
"end": [
1,
15
]
},
{
"start": [
1,
3
],
"end": [
1,
20
]
}
]
},
"summary": "Replaced the 'someProperty' identifier with the 'someOtherProperty' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "a24d2c73c061cc1124a76c8d53d324f6d8d56b1b",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "397d55476cc1b66ae98e4f258055a0a5a6860f4c"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-member-access-delete-replacement-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
20
]
}
},
"summary": "Deleted the 'x.someOtherProperty' member access",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
15
]
}
},
"summary": "Deleted the 'x.someProperty' member access",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
20
]
}
},
"summary": "Added the 'x.someOtherProperty' member access",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "397d55476cc1b66ae98e4f258055a0a5a6860f4c",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "5677ae58e398c0c1918513007208da0fdf21e181"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-member-access-delete-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
15
]
}
},
"summary": "Deleted the 'x.someProperty' member access",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "5677ae58e398c0c1918513007208da0fdf21e181",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "9b5bb8a95ace1c7bf6b2017bacaaf538c41508b5"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-member-access-delete-rest-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
20
]
}
},
"summary": "Deleted the 'x.someOtherProperty' member access",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "9b5bb8a95ace1c7bf6b2017bacaaf538c41508b5",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "13bf09743306aea0c956273f7ead3bc1759bcee5"
2016-10-11 18:12:20 +03:00
}]