1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 06:11:49 +03:00
semantic/test/corpus/diff-summaries/javascript/named-function.json

445 lines
15 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-named-function-insert-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"name": "named-function.js",
"end": [
1,
42
]
}
},
"summary": "Added the 'myFunction' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
2016-10-11 18:54:47 +03:00
"sha1": "13ebce1d1e86a542435c13c42f189fc5f63ffa80",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:54:47 +03:00
"sha2": "ccf7572d97487c3437622c80426357ea3cdd949c"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-named-function-replacement-insert-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"name": "named-function.js",
"end": [
1,
45
]
}
},
"summary": "Added the 'anotherFunction' function",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"name": "named-function.js",
"end": [
2,
42
]
}
},
"summary": "Added the 'myFunction' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
2016-10-11 18:54:47 +03:00
"sha1": "ccf7572d97487c3437622c80426357ea3cdd949c",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:54:47 +03:00
"sha2": "9aef777bcfa7124d354878123376adb64d0f9b86"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-named-function-delete-insert-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
10
],
"name": "named-function.js",
"end": [
1,
25
]
},
{
"start": [
1,
10
],
"name": "named-function.js",
"end": [
1,
20
]
}
]
},
"summary": "Replaced the 'anotherFunction' identifier with the 'myFunction' identifier in the myFunction function",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
21
],
"name": "named-function.js",
"end": [
1,
25
]
}
},
"summary": "Added the 'arg1' identifier in the myFunction function",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
27
],
"name": "named-function.js",
"end": [
1,
31
]
}
},
"summary": "Added the 'arg2' identifier in the myFunction function",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
35
],
"name": "named-function.js",
"end": [
1,
39
]
}
},
"summary": "Added the 'arg2' identifier in the myFunction function",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
30
],
"name": "named-function.js",
"end": [
1,
43
]
}
},
"summary": "Deleted the 'false' return statement in the myFunction function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
2016-10-11 18:54:47 +03:00
"sha1": "9aef777bcfa7124d354878123376adb64d0f9b86",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:54:47 +03:00
"sha2": "51586f5431494e95c89dbf547d91b89affe41d80"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-named-function-replacement-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
10
],
"name": "named-function.js",
"end": [
1,
20
]
},
{
"start": [
1,
10
],
"name": "named-function.js",
"end": [
1,
25
]
}
]
},
"summary": "Replaced the 'myFunction' identifier with the 'anotherFunction' identifier in the anotherFunction function",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
21
],
"name": "named-function.js",
"end": [
1,
25
]
}
},
"summary": "Deleted the 'arg1' identifier in the anotherFunction function",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
27
],
"name": "named-function.js",
"end": [
1,
31
]
}
},
"summary": "Deleted the 'arg2' identifier in the anotherFunction function",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
30
],
"name": "named-function.js",
"end": [
1,
43
]
}
},
"summary": "Added the 'false' return statement in the anotherFunction function",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
35
],
"name": "named-function.js",
"end": [
1,
39
]
}
},
"summary": "Deleted the 'arg2' identifier in the anotherFunction function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
2016-10-11 18:54:47 +03:00
"sha1": "51586f5431494e95c89dbf547d91b89affe41d80",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:54:47 +03:00
"sha2": "412499fc3980298e4426f219fc4c7728f7970a2d"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-named-function-delete-replacement-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"name": "named-function.js",
"end": [
1,
45
]
}
},
"summary": "Deleted the 'anotherFunction' function",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"name": "named-function.js",
"end": [
2,
42
]
}
},
"summary": "Deleted the 'myFunction' function",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"name": "named-function.js",
"end": [
2,
45
]
}
},
"summary": "Added the 'anotherFunction' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
2016-10-11 18:54:47 +03:00
"sha1": "412499fc3980298e4426f219fc4c7728f7970a2d",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:54:47 +03:00
"sha2": "808aa67a46dd08a54a9688644ad1ed7f0a787449"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-named-function-delete-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"name": "named-function.js",
"end": [
1,
42
]
}
},
"summary": "Deleted the 'myFunction' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
2016-10-11 18:54:47 +03:00
"sha1": "808aa67a46dd08a54a9688644ad1ed7f0a787449",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:54:47 +03:00
"sha2": "bc6a204b96bb860353491146bcf0c4adebe28f69"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-named-function-delete-rest-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"name": "named-function.js",
"end": [
1,
45
]
}
},
"summary": "Deleted the 'anotherFunction' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
2016-10-11 18:54:47 +03:00
"sha1": "bc6a204b96bb860353491146bcf0c4adebe28f69",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:54:47 +03:00
"sha2": "2f07429c5135205d55550f4c64061a6ac987da17"
2016-10-11 18:12:20 +03:00
}]