1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00
semantic/test/corpus/diff-summaries/javascript/generator-function.json

309 lines
10 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-generator-function-insert-test",
"expectedResult": {
"changes": {
"generator-function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
2016-10-11 19:52:26 +03:00
"filepath": "generator-function.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
59
]
}
},
"summary": "Added the 'generateStuff' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"generator-function.js"
],
"sha1": "64732c38069cc70ee3bea66306d966d902444b68",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "a34ad7fd0b70236787b11433577fbb0e40a7e208"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-generator-function-replacement-insert-test",
"expectedResult": {
"changes": {
"generator-function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
2016-10-11 19:52:26 +03:00
"filepath": "generator-function.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
62
]
}
},
"summary": "Added the 'generateNewStuff' function",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
2016-10-11 19:52:26 +03:00
"filepath": "generator-function.js",
2016-10-11 18:12:20 +03:00
"end": [
2,
59
]
}
},
"summary": "Added the 'generateStuff' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"generator-function.js"
],
"sha1": "a34ad7fd0b70236787b11433577fbb0e40a7e208",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "620959c65bb56fb7111b587d612af03547182987"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-generator-function-delete-insert-test",
"expectedResult": {
"changes": {
"generator-function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
11
],
2016-10-11 19:52:26 +03:00
"filepath": "generator-function.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
27
]
},
{
"start": [
1,
11
],
2016-10-11 19:52:26 +03:00
"filepath": "generator-function.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
24
]
}
]
},
"summary": "Replaced the 'generateNewStuff' identifier with the 'generateStuff' identifier in the generateStuff function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"generator-function.js"
],
"sha1": "620959c65bb56fb7111b587d612af03547182987",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "a2eb2702e26ae6d4fabaff49b6afe20f5ab7e7e3"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-generator-function-replacement-test",
"expectedResult": {
"changes": {
"generator-function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
11
],
2016-10-11 19:52:26 +03:00
"filepath": "generator-function.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
24
]
},
{
"start": [
1,
11
],
2016-10-11 19:52:26 +03:00
"filepath": "generator-function.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
27
]
}
]
},
"summary": "Replaced the 'generateStuff' identifier with the 'generateNewStuff' identifier in the generateNewStuff function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"generator-function.js"
],
"sha1": "a2eb2702e26ae6d4fabaff49b6afe20f5ab7e7e3",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "43156dff1c85bedb4bcc8cc0467ab3621b43e685"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-generator-function-delete-replacement-test",
"expectedResult": {
"changes": {
"generator-function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
2016-10-11 19:52:26 +03:00
"filepath": "generator-function.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
62
]
}
},
"summary": "Deleted the 'generateNewStuff' function",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
2016-10-11 19:52:26 +03:00
"filepath": "generator-function.js",
2016-10-11 18:12:20 +03:00
"end": [
2,
59
]
}
},
"summary": "Deleted the 'generateStuff' function",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
2016-10-11 19:52:26 +03:00
"filepath": "generator-function.js",
2016-10-11 18:12:20 +03:00
"end": [
2,
62
]
}
},
"summary": "Added the 'generateNewStuff' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"generator-function.js"
],
"sha1": "43156dff1c85bedb4bcc8cc0467ab3621b43e685",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "8253ea0f958328699c263ea46ece386d55ea46d5"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-generator-function-delete-test",
"expectedResult": {
"changes": {
"generator-function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
2016-10-11 19:52:26 +03:00
"filepath": "generator-function.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
59
]
}
},
"summary": "Deleted the 'generateStuff' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"generator-function.js"
],
"sha1": "8253ea0f958328699c263ea46ece386d55ea46d5",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "2ff3ccf6c80c2aec6fe592160e3ed97fcbbfcbe5"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-generator-function-delete-rest-test",
"expectedResult": {
"changes": {
"generator-function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
2016-10-11 19:52:26 +03:00
"filepath": "generator-function.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
62
]
}
},
"summary": "Deleted the 'generateNewStuff' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"generator-function.js"
],
"sha1": "2ff3ccf6c80c2aec6fe592160e3ed97fcbbfcbe5",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "4f10daadd1f0292f7909951043926535151b0c5d"
2016-10-11 18:12:20 +03:00
}]