1
1
mirror of https://github.com/github/semantic.git synced 2024-12-30 02:14:20 +03:00
semantic/test/corpus/diff-summaries/javascript/member-access-assignment.json
Rick Winfrey dfc11385d8 ++tests
2016-10-14 13:40:07 -05:00

287 lines
8.8 KiB
JSON

[{
"testCaseDescription": "javascript-member-access-assignment-insert-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Added the 'y.x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"sha1": "57057e16ba96f294605ced40a286c5e5a70a4399",
"gitDir": "test/corpus/repos/javascript",
"sha2": "64a0f73b0782e40f7c8aa9f3a695844e586b7135"
}
,{
"testCaseDescription": "javascript-member-access-assignment-replacement-insert-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Added the 'y.x' assignment"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
8
]
}
},
"summary": "Added the 'y.x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"sha1": "64a0f73b0782e40f7c8aa9f3a695844e586b7135",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1b0263524f09631f8a3c374072a705da3ea4c0d1"
}
,{
"testCaseDescription": "javascript-member-access-assignment-delete-insert-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"replace": [
{
"start": [
1,
7
],
"end": [
1,
8
]
},
{
"start": [
1,
7
],
"end": [
1,
8
]
}
]
},
"summary": "Replaced '1' with '0' in an assignment to y.x"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"sha1": "1b0263524f09631f8a3c374072a705da3ea4c0d1",
"gitDir": "test/corpus/repos/javascript",
"sha2": "4960286f9a702dfd1c3dad8a6cb5daa43d5e8d91"
}
,{
"testCaseDescription": "javascript-member-access-assignment-replacement-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"replace": [
{
"start": [
1,
7
],
"end": [
1,
8
]
},
{
"start": [
1,
7
],
"end": [
1,
8
]
}
]
},
"summary": "Replaced '0' with '1' in an assignment to y.x"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"sha1": "4960286f9a702dfd1c3dad8a6cb5daa43d5e8d91",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b077d10f8bf6ed1b1458b962c7d99713850add3c"
}
,{
"testCaseDescription": "javascript-member-access-assignment-delete-replacement-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Deleted the 'y.x' assignment"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
8
]
}
},
"summary": "Deleted the 'y.x' assignment"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
8
]
}
},
"summary": "Added the 'y.x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"sha1": "b077d10f8bf6ed1b1458b962c7d99713850add3c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "54027439cf7d59db66c4834ac933f6dac40b74be"
}
,{
"testCaseDescription": "javascript-member-access-assignment-delete-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Deleted the 'y.x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"sha1": "54027439cf7d59db66c4834ac933f6dac40b74be",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3a0ea19deb43ea921f2a9c757f7085d66c68f0b1"
}
,{
"testCaseDescription": "javascript-member-access-assignment-delete-rest-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Deleted the 'y.x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"sha1": "3a0ea19deb43ea921f2a9c757f7085d66c68f0b1",
"gitDir": "test/corpus/repos/javascript",
"sha2": "71e846db3af817d1db02b2d462983f50a9059fc0"
}]