1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00
semantic/test/corpus/diff-summaries/javascript/function.json

309 lines
9.7 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-function-insert-test",
"expectedResult": {
"changes": {
"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": "function.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
31
]
}
},
"summary": "Added an anonymous(arg1, arg2) function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "f1f90eaec662b19f812bcd5cf97dc4c33579432a",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "91b60f943a0bc9c8fdf884a37fbe268812250c26"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-function-replacement-insert-test",
"expectedResult": {
"changes": {
"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": "function.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
31
]
}
},
"summary": "Added an anonymous(arg1, arg2) 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": "function.js",
2016-10-11 18:12:20 +03:00
"end": [
2,
31
]
}
},
"summary": "Added an anonymous(arg1, arg2) function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "91b60f943a0bc9c8fdf884a37fbe268812250c26",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "cc6480c842fd35a365c64983b9bb436c703b1b23"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-function-delete-insert-test",
"expectedResult": {
"changes": {
"function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
24
],
2016-10-11 19:52:26 +03:00
"filepath": "function.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
28
]
},
{
"start": [
1,
24
],
2016-10-11 19:52:26 +03:00
"filepath": "function.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
28
]
}
]
},
"summary": "Replaced the 'arg1' identifier with the 'arg2' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "cc6480c842fd35a365c64983b9bb436c703b1b23",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "41b45e9c0db1380e4b33811ab79708173546579a"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-function-replacement-test",
"expectedResult": {
"changes": {
"function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
24
],
2016-10-11 19:52:26 +03:00
"filepath": "function.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
28
]
},
{
"start": [
1,
24
],
2016-10-11 19:52:26 +03:00
"filepath": "function.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
28
]
}
]
},
"summary": "Replaced the 'arg2' identifier with the 'arg1' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "41b45e9c0db1380e4b33811ab79708173546579a",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "b474469be8c7d7f823438fbe7ad01b07859378c7"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-function-delete-replacement-test",
"expectedResult": {
"changes": {
"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": "function.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
31
]
}
},
"summary": "Deleted an anonymous(arg1, arg2) 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": "function.js",
2016-10-11 18:12:20 +03:00
"end": [
2,
31
]
}
},
"summary": "Deleted an anonymous(arg1, arg2) 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": "function.js",
2016-10-11 18:12:20 +03:00
"end": [
2,
31
]
}
},
"summary": "Added an anonymous(arg1, arg2) function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "b474469be8c7d7f823438fbe7ad01b07859378c7",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "651fe75158ddd05cf54b949988612ec1251dae2e"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-function-delete-test",
"expectedResult": {
"changes": {
"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": "function.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
31
]
}
},
"summary": "Deleted an anonymous(arg1, arg2) function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "651fe75158ddd05cf54b949988612ec1251dae2e",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "366ae8f7b8fe47ca50de197b15c60bb565806a97"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-function-delete-rest-test",
"expectedResult": {
"changes": {
"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": "function.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
31
]
}
},
"summary": "Deleted an anonymous(arg1, arg2) function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "366ae8f7b8fe47ca50de197b15c60bb565806a97",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "a495563711f9bcf2719eea2cf654af90e7ce2202"
2016-10-11 18:12:20 +03:00
}]