1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
semantic/test/corpus/diff-summaries/javascript/subscript-access-string.json

287 lines
9.1 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-subscript-access-string-insert-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
17
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'x[\"some-string\"]' subscript access"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-string.js"
],
2016-10-13 02:44:27 +03:00
"sha1": "981efcba61868ad924679df8ae41901e4d7a5c95",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-13 02:44:27 +03:00
"sha2": "73b3fb9b291f70d2dad30ea5c2e9b737464c5afe"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-subscript-access-string-replacement-insert-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
23
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'x[\"some-other-string\"]' subscript access"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
17
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'x[\"some-string\"]' subscript access"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-string.js"
],
2016-10-13 02:44:27 +03:00
"sha1": "73b3fb9b291f70d2dad30ea5c2e9b737464c5afe",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-13 02:44:27 +03:00
"sha2": "25ed1622169d3a9f6b15d4da117040e19bd5a731"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-subscript-access-string-delete-insert-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
3
],
"end": [
1,
22
]
},
{
"start": [
1,
3
],
"end": [
1,
16
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the \"some-other-string\" string with the \"some-string\" string in the x[\"some-string\"] subscript access"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-string.js"
],
2016-10-13 02:44:27 +03:00
"sha1": "25ed1622169d3a9f6b15d4da117040e19bd5a731",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-13 02:44:27 +03:00
"sha2": "5902efdc4e63d8c775a2b057832a39d877f43e46"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-subscript-access-string-replacement-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
3
],
"end": [
1,
16
]
},
{
"start": [
1,
3
],
"end": [
1,
22
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the \"some-string\" string with the \"some-other-string\" string in the x[\"some-other-string\"] subscript access"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-string.js"
],
2016-10-13 02:44:27 +03:00
"sha1": "5902efdc4e63d8c775a2b057832a39d877f43e46",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-13 02:44:27 +03:00
"sha2": "d62e205dfb9a2bda5341ff49d28de881d8aeb727"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-subscript-access-string-delete-replacement-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
23
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'x[\"some-other-string\"]' subscript access"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
17
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'x[\"some-string\"]' subscript access"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
23
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'x[\"some-other-string\"]' subscript access"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-string.js"
],
2016-10-13 02:44:27 +03:00
"sha1": "d62e205dfb9a2bda5341ff49d28de881d8aeb727",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-13 02:44:27 +03:00
"sha2": "da2e81b722bcb58384263e61c61a44a819751f43"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-subscript-access-string-delete-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
17
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'x[\"some-string\"]' subscript access"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-string.js"
],
2016-10-13 02:44:27 +03:00
"sha1": "da2e81b722bcb58384263e61c61a44a819751f43",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-13 02:44:27 +03:00
"sha2": "0c9487ad345e5749fbe5522fd13ba43d6789523b"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-subscript-access-string-delete-rest-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
23
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'x[\"some-other-string\"]' subscript access"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-string.js"
],
2016-10-13 02:44:27 +03:00
"sha1": "0c9487ad345e5749fbe5522fd13ba43d6789523b",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-13 02:44:27 +03:00
"sha2": "f1c04171b74313ee5a210c4c2d9431b4730563aa"
2016-10-11 18:12:20 +03:00
}]