1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00
semantic/test/corpus/diff-summaries/javascript/member-access.json
2016-10-11 12:52:26 -04:00

309 lines
9.9 KiB
JSON

[{
"testCaseDescription": "javascript-member-access-insert-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "member-access.js",
"end": [
1,
15
]
}
},
"summary": "Added the 'x.someProperty' member access",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"sha1": "809449783f5fc8fe8ceead7879dfa8658d896e49",
"gitDir": "test/corpus/repos/javascript",
"sha2": "4a71937ab4674805e2615bba994dc9d4c7d0359f"
}
,{
"testCaseDescription": "javascript-member-access-replacement-insert-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "member-access.js",
"end": [
1,
20
]
}
},
"summary": "Added the 'x.someOtherProperty' member access",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "member-access.js",
"end": [
2,
15
]
}
},
"summary": "Added the 'x.someProperty' member access",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"sha1": "4a71937ab4674805e2615bba994dc9d4c7d0359f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d0cd17917390d2dbe77338314a268c760393033d"
}
,{
"testCaseDescription": "javascript-member-access-delete-insert-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"replace": [
{
"start": [
1,
3
],
"filepath": "member-access.js",
"end": [
1,
20
]
},
{
"start": [
1,
3
],
"filepath": "member-access.js",
"end": [
1,
15
]
}
]
},
"summary": "Replaced the 'someOtherProperty' identifier with the 'someProperty' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"sha1": "d0cd17917390d2dbe77338314a268c760393033d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ac770284357a8837916b0fd99a600ea842316c3f"
}
,{
"testCaseDescription": "javascript-member-access-replacement-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"replace": [
{
"start": [
1,
3
],
"filepath": "member-access.js",
"end": [
1,
15
]
},
{
"start": [
1,
3
],
"filepath": "member-access.js",
"end": [
1,
20
]
}
]
},
"summary": "Replaced the 'someProperty' identifier with the 'someOtherProperty' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"sha1": "ac770284357a8837916b0fd99a600ea842316c3f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "29c4345d54f21491b5f7500da823d4753a03ab22"
}
,{
"testCaseDescription": "javascript-member-access-delete-replacement-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "member-access.js",
"end": [
1,
20
]
}
},
"summary": "Deleted the 'x.someOtherProperty' member access",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"filepath": "member-access.js",
"end": [
2,
15
]
}
},
"summary": "Deleted the 'x.someProperty' member access",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "member-access.js",
"end": [
2,
20
]
}
},
"summary": "Added the 'x.someOtherProperty' member access",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"sha1": "29c4345d54f21491b5f7500da823d4753a03ab22",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0294e4c3c800a8463cadba06d04b734e5147da4b"
}
,{
"testCaseDescription": "javascript-member-access-delete-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "member-access.js",
"end": [
1,
15
]
}
},
"summary": "Deleted the 'x.someProperty' member access",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"sha1": "0294e4c3c800a8463cadba06d04b734e5147da4b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "aa83a1d624fe3d6c13b254d769115e7b67b3b811"
}
,{
"testCaseDescription": "javascript-member-access-delete-rest-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "member-access.js",
"end": [
1,
20
]
}
},
"summary": "Deleted the 'x.someOtherProperty' member access",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"sha1": "aa83a1d624fe3d6c13b254d769115e7b67b3b811",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ca1544de272e3014ccfa6f73f73580f066b87e55"
}]