1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
semantic/test/corpus/diff-summaries/javascript/anonymous-parameterless-function.json
2016-11-01 10:03:25 -05:00

287 lines
9.0 KiB
JSON

[{
"testCaseDescription": "javascript-anonymous-parameterless-function-insert-test",
"expectedResult": {
"changes": {
"anonymous-parameterless-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
28
]
}
},
"summary": "Added an anonymous() function"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-parameterless-function.js"
],
"sha1": "9fd0f7aee44dbf83b9a380bad5755081b4246e77",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3f71749ad94ee55259b0185c358235d8ac903467"
}
,{
"testCaseDescription": "javascript-anonymous-parameterless-function-replacement-insert-test",
"expectedResult": {
"changes": {
"anonymous-parameterless-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
31
]
}
},
"summary": "Added an anonymous() function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
28
]
}
},
"summary": "Added an anonymous() function"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-parameterless-function.js"
],
"sha1": "3f71749ad94ee55259b0185c358235d8ac903467",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0863179c63f1167cdfb18c909a4085cc496937f6"
}
,{
"testCaseDescription": "javascript-anonymous-parameterless-function-delete-insert-test",
"expectedResult": {
"changes": {
"anonymous-parameterless-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
21
],
"end": [
1,
28
]
},
{
"start": [
1,
21
],
"end": [
1,
25
]
}
]
},
"summary": "Replaced the 'hello' string with the 'hi' string"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-parameterless-function.js"
],
"sha1": "0863179c63f1167cdfb18c909a4085cc496937f6",
"gitDir": "test/corpus/repos/javascript",
"sha2": "694e7e4dbf661db0da87a68db68975fe34fdba3f"
}
,{
"testCaseDescription": "javascript-anonymous-parameterless-function-replacement-test",
"expectedResult": {
"changes": {
"anonymous-parameterless-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
21
],
"end": [
1,
25
]
},
{
"start": [
1,
21
],
"end": [
1,
28
]
}
]
},
"summary": "Replaced the 'hi' string with the 'hello' string"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-parameterless-function.js"
],
"sha1": "694e7e4dbf661db0da87a68db68975fe34fdba3f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "353eeb99fc286d0683f1d698a8f6212ce4699acd"
}
,{
"testCaseDescription": "javascript-anonymous-parameterless-function-delete-replacement-test",
"expectedResult": {
"changes": {
"anonymous-parameterless-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
31
]
}
},
"summary": "Deleted an anonymous() function"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
28
]
}
},
"summary": "Deleted an anonymous() function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
31
]
}
},
"summary": "Added an anonymous() function"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-parameterless-function.js"
],
"sha1": "353eeb99fc286d0683f1d698a8f6212ce4699acd",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9862380b35add3763257a9f558bf4ff02427d9cf"
}
,{
"testCaseDescription": "javascript-anonymous-parameterless-function-delete-test",
"expectedResult": {
"changes": {
"anonymous-parameterless-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
28
]
}
},
"summary": "Deleted an anonymous() function"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-parameterless-function.js"
],
"sha1": "9862380b35add3763257a9f558bf4ff02427d9cf",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e42905606a9100ef0e06cb728b265e6d772e9a9f"
}
,{
"testCaseDescription": "javascript-anonymous-parameterless-function-delete-rest-test",
"expectedResult": {
"changes": {
"anonymous-parameterless-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
31
]
}
},
"summary": "Deleted an anonymous() function"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-parameterless-function.js"
],
"sha1": "e42905606a9100ef0e06cb728b265e6d772e9a9f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8662f58f1d7ce21fddcefecae990742a5d1398dc"
}]