1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/javascript/arrow-function.json

287 lines
8.7 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-arrow-function-insert-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
24
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added an anonymous(f, g) function"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "1a65f6b31571ca180a7067af4efe0b804b5bd17f",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "d8b95c6c259bbc1031068e76b71ee165a32fcc90"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-arrow-function-replacement-insert-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
24
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added an anonymous(f, g) function"
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,
24
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added an anonymous(f, g) function"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "d8b95c6c259bbc1031068e76b71ee165a32fcc90",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "38971f3bb12072ce71a8af2e61b40128e2e04335"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-arrow-function-delete-insert-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
20
],
"end": [
1,
21
]
},
{
"start": [
1,
20
],
"end": [
1,
21
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'g' identifier with the 'h' identifier"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "38971f3bb12072ce71a8af2e61b40128e2e04335",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "0bad91b1393996893c42c7ca6cea6b485ed79f3d"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-arrow-function-replacement-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
20
],
"end": [
1,
21
]
},
{
"start": [
1,
20
],
"end": [
1,
21
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'h' identifier with the 'g' identifier"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "0bad91b1393996893c42c7ca6cea6b485ed79f3d",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "22eb88fd92a0f54db863a2c99e7f6cefd573d70c"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-arrow-function-delete-replacement-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
24
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted an anonymous(f, g) function"
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,
24
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted an anonymous(f, g) function"
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,
24
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added an anonymous(f, g) function"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "22eb88fd92a0f54db863a2c99e7f6cefd573d70c",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "ce32c18979a6f118f1a64d68058aea090fbd6ffa"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-arrow-function-delete-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
24
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted an anonymous(f, g) function"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "ce32c18979a6f118f1a64d68058aea090fbd6ffa",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "555a09419c1aeebf5676d25753625cc4a6558f9b"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-arrow-function-delete-rest-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
24
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted an anonymous(f, g) function"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "555a09419c1aeebf5676d25753625cc4a6558f9b",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "843b9d83e2acc3f1bf014abc4e2402e1a783d3f6"
2016-10-11 18:12:20 +03:00
}]