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-assignment.json
2016-10-11 12:52:26 -04:00

309 lines
10 KiB
JSON

[{
"testCaseDescription": "javascript-member-access-assignment-insert-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "member-access-assignment.js",
"end": [
1,
8
]
}
},
"summary": "Added the 'y.x' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"sha1": "7380de134eeae9874be06c3d411dcbb3fb94d015",
"gitDir": "test/corpus/repos/javascript",
"sha2": "cd496d7f1d2c90c9727e37015319fb990d405494"
}
,{
"testCaseDescription": "javascript-member-access-assignment-replacement-insert-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "member-access-assignment.js",
"end": [
1,
8
]
}
},
"summary": "Added the 'y.x' assignment",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "member-access-assignment.js",
"end": [
2,
8
]
}
},
"summary": "Added the 'y.x' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"sha1": "cd496d7f1d2c90c9727e37015319fb990d405494",
"gitDir": "test/corpus/repos/javascript",
"sha2": "bd5fd3eb1fd88229399ce2016e7591193b588f0e"
}
,{
"testCaseDescription": "javascript-member-access-assignment-delete-insert-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"replace": [
{
"start": [
1,
7
],
"filepath": "member-access-assignment.js",
"end": [
1,
8
]
},
{
"start": [
1,
7
],
"filepath": "member-access-assignment.js",
"end": [
1,
8
]
}
]
},
"summary": "Replaced '1' with '0' in an assignment to y.x",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"sha1": "bd5fd3eb1fd88229399ce2016e7591193b588f0e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b9539036cd2b06a6326151cc379d8732bef57bd2"
}
,{
"testCaseDescription": "javascript-member-access-assignment-replacement-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"replace": [
{
"start": [
1,
7
],
"filepath": "member-access-assignment.js",
"end": [
1,
8
]
},
{
"start": [
1,
7
],
"filepath": "member-access-assignment.js",
"end": [
1,
8
]
}
]
},
"summary": "Replaced '0' with '1' in an assignment to y.x",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"sha1": "b9539036cd2b06a6326151cc379d8732bef57bd2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "2e89afcef070681df977134e2a312bdcb4b1388b"
}
,{
"testCaseDescription": "javascript-member-access-assignment-delete-replacement-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "member-access-assignment.js",
"end": [
1,
8
]
}
},
"summary": "Deleted the 'y.x' assignment",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"filepath": "member-access-assignment.js",
"end": [
2,
8
]
}
},
"summary": "Deleted the 'y.x' assignment",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "member-access-assignment.js",
"end": [
2,
8
]
}
},
"summary": "Added the 'y.x' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"sha1": "2e89afcef070681df977134e2a312bdcb4b1388b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "50b47456bf5b0650ad9d88815dea43e280734815"
}
,{
"testCaseDescription": "javascript-member-access-assignment-delete-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "member-access-assignment.js",
"end": [
1,
8
]
}
},
"summary": "Deleted the 'y.x' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"sha1": "50b47456bf5b0650ad9d88815dea43e280734815",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c3a2723e98e43d147147f02b98ae5d283a7157f8"
}
,{
"testCaseDescription": "javascript-member-access-assignment-delete-rest-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "member-access-assignment.js",
"end": [
1,
8
]
}
},
"summary": "Deleted the 'y.x' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"sha1": "c3a2723e98e43d147147f02b98ae5d283a7157f8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "005c70a333fc50afa05734f7e6f660d18d53236b"
}]