mirror of
https://github.com/github/semantic.git
synced 2024-12-21 22:01:46 +03:00
297 lines
9.2 KiB
JSON
297 lines
9.2 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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access.js"
|
|
],
|
|
"sha1": "34dda706308957a43236571644aff6e35d5ed5c8",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "229478a3867e3a976746a8e8e30e79ed9383d47b"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x.someProperty' member access",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access.js"
|
|
],
|
|
"sha1": "229478a3867e3a976746a8e8e30e79ed9383d47b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "77a6c524dc810aef2a026ada74ae51db6401d399"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access.js"
|
|
],
|
|
"sha1": "77a6c524dc810aef2a026ada74ae51db6401d399",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a24d2c73c061cc1124a76c8d53d324f6d8d56b1b"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access.js"
|
|
],
|
|
"sha1": "a24d2c73c061cc1124a76c8d53d324f6d8d56b1b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "397d55476cc1b66ae98e4f258055a0a5a6860f4c"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x.someProperty' member access",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
20
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x.someOtherProperty' member access",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access.js"
|
|
],
|
|
"sha1": "397d55476cc1b66ae98e4f258055a0a5a6860f4c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "5677ae58e398c0c1918513007208da0fdf21e181"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access.js"
|
|
],
|
|
"sha1": "5677ae58e398c0c1918513007208da0fdf21e181",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9b5bb8a95ace1c7bf6b2017bacaaf538c41508b5"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access.js"
|
|
],
|
|
"sha1": "9b5bb8a95ace1c7bf6b2017bacaaf538c41508b5",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "13bf09743306aea0c956273f7ead3bc1759bcee5"
|
|
}]
|