1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 22:01:46 +03:00
semantic/test/corpus/diff-summaries/javascript/named-function.json
2016-10-11 11:54:47 -04:00

445 lines
15 KiB
JSON

[{
"testCaseDescription": "javascript-named-function-insert-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"name": "named-function.js",
"end": [
1,
42
]
}
},
"summary": "Added the 'myFunction' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"sha1": "13ebce1d1e86a542435c13c42f189fc5f63ffa80",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ccf7572d97487c3437622c80426357ea3cdd949c"
}
,{
"testCaseDescription": "javascript-named-function-replacement-insert-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"name": "named-function.js",
"end": [
1,
45
]
}
},
"summary": "Added the 'anotherFunction' function",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"name": "named-function.js",
"end": [
2,
42
]
}
},
"summary": "Added the 'myFunction' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"sha1": "ccf7572d97487c3437622c80426357ea3cdd949c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9aef777bcfa7124d354878123376adb64d0f9b86"
}
,{
"testCaseDescription": "javascript-named-function-delete-insert-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"replace": [
{
"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": {
"insert": {
"start": [
1,
21
],
"name": "named-function.js",
"end": [
1,
25
]
}
},
"summary": "Added the 'arg1' identifier in the myFunction function",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
1,
27
],
"name": "named-function.js",
"end": [
1,
31
]
}
},
"summary": "Added the 'arg2' identifier in the myFunction function",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
1,
35
],
"name": "named-function.js",
"end": [
1,
39
]
}
},
"summary": "Added the 'arg2' identifier in the myFunction function",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"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"
],
"sha1": "9aef777bcfa7124d354878123376adb64d0f9b86",
"gitDir": "test/corpus/repos/javascript",
"sha2": "51586f5431494e95c89dbf547d91b89affe41d80"
}
,{
"testCaseDescription": "javascript-named-function-replacement-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"replace": [
{
"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": {
"delete": {
"start": [
1,
21
],
"name": "named-function.js",
"end": [
1,
25
]
}
},
"summary": "Deleted the 'arg1' identifier in the anotherFunction function",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
1,
27
],
"name": "named-function.js",
"end": [
1,
31
]
}
},
"summary": "Deleted the 'arg2' identifier in the anotherFunction function",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
1,
30
],
"name": "named-function.js",
"end": [
1,
43
]
}
},
"summary": "Added the 'false' return statement in the anotherFunction function",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"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"
],
"sha1": "51586f5431494e95c89dbf547d91b89affe41d80",
"gitDir": "test/corpus/repos/javascript",
"sha2": "412499fc3980298e4426f219fc4c7728f7970a2d"
}
,{
"testCaseDescription": "javascript-named-function-delete-replacement-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "named-function.js",
"end": [
1,
45
]
}
},
"summary": "Deleted the 'anotherFunction' function",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"name": "named-function.js",
"end": [
2,
42
]
}
},
"summary": "Deleted the 'myFunction' function",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"name": "named-function.js",
"end": [
2,
45
]
}
},
"summary": "Added the 'anotherFunction' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"sha1": "412499fc3980298e4426f219fc4c7728f7970a2d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "808aa67a46dd08a54a9688644ad1ed7f0a787449"
}
,{
"testCaseDescription": "javascript-named-function-delete-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "named-function.js",
"end": [
1,
42
]
}
},
"summary": "Deleted the 'myFunction' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"sha1": "808aa67a46dd08a54a9688644ad1ed7f0a787449",
"gitDir": "test/corpus/repos/javascript",
"sha2": "bc6a204b96bb860353491146bcf0c4adebe28f69"
}
,{
"testCaseDescription": "javascript-named-function-delete-rest-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "named-function.js",
"end": [
1,
45
]
}
},
"summary": "Deleted the 'anotherFunction' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"sha1": "bc6a204b96bb860353491146bcf0c4adebe28f69",
"gitDir": "test/corpus/repos/javascript",
"sha2": "2f07429c5135205d55550f4c64061a6ac987da17"
}]