1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 13:51:44 +03:00
semantic/test/corpus/diff-summaries/javascript/subscript-access-assignment.json
2016-10-11 11:26:57 -04:00

309 lines
10 KiB
JSON

[{
"testCaseDescription": "javascript-subscript-access-assignment-insert-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
"that": {
"start": [
1,
1
],
"name": "subscript-access-assignment.js",
"end": [
1,
11
]
}
},
"summary": "Added the 'y[\"x\"]' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "2777fc53b2f1b0e54aead0a015db9970af0795fe",
"gitDir": "test/corpus/repos/javascript",
"sha2": "56d078c8be955e974b02bb9413e8196e0e092cdb"
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-replacement-insert-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
"that": {
"start": [
1,
1
],
"name": "subscript-access-assignment.js",
"end": [
1,
11
]
}
},
"summary": "Added the 'y[\"x\"]' assignment",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
2,
1
],
"name": "subscript-access-assignment.js",
"end": [
2,
11
]
}
},
"summary": "Added the 'y[\"x\"]' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "56d078c8be955e974b02bb9413e8196e0e092cdb",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b6764107f971cb9f7ddf592f63c48d6e7920eb79"
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-delete-insert-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
"these": [
{
"start": [
1,
10
],
"name": "subscript-access-assignment.js",
"end": [
1,
11
]
},
{
"start": [
1,
10
],
"name": "subscript-access-assignment.js",
"end": [
1,
11
]
}
]
},
"summary": "Replaced '1' with '0' in an assignment to y[\"x\"]",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "b6764107f971cb9f7ddf592f63c48d6e7920eb79",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c6cf46d469bff2839ea43d397a672cfeefb7fed3"
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-replacement-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
"these": [
{
"start": [
1,
10
],
"name": "subscript-access-assignment.js",
"end": [
1,
11
]
},
{
"start": [
1,
10
],
"name": "subscript-access-assignment.js",
"end": [
1,
11
]
}
]
},
"summary": "Replaced '0' with '1' in an assignment to y[\"x\"]",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "c6cf46d469bff2839ea43d397a672cfeefb7fed3",
"gitDir": "test/corpus/repos/javascript",
"sha2": "be2f114b3b50c34e16eb2a9201b3b63ba6a08617"
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-delete-replacement-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "subscript-access-assignment.js",
"end": [
1,
11
]
}
},
"summary": "Deleted the 'y[\"x\"]' assignment",
"tag": "JSONSummary"
},
{
"span": {
"this": {
"start": [
2,
1
],
"name": "subscript-access-assignment.js",
"end": [
2,
11
]
}
},
"summary": "Deleted the 'y[\"x\"]' assignment",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
2,
1
],
"name": "subscript-access-assignment.js",
"end": [
2,
11
]
}
},
"summary": "Added the 'y[\"x\"]' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "be2f114b3b50c34e16eb2a9201b3b63ba6a08617",
"gitDir": "test/corpus/repos/javascript",
"sha2": "5ca3653b76f677ce067dc9c1509ab906f205cd1b"
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-delete-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "subscript-access-assignment.js",
"end": [
1,
11
]
}
},
"summary": "Deleted the 'y[\"x\"]' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "5ca3653b76f677ce067dc9c1509ab906f205cd1b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "5e1b3305c8e5ffeaffd2e5a040a07fe6e1965484"
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-delete-rest-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "subscript-access-assignment.js",
"end": [
1,
11
]
}
},
"summary": "Deleted the 'y[\"x\"]' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "5e1b3305c8e5ffeaffd2e5a040a07fe6e1965484",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1cda03e29bc707037e0b55c899bc9d9fec1239db"
}]