1
1
mirror of https://github.com/github/semantic.git synced 2024-12-30 02:14:20 +03:00
semantic/test/corpus/diff-summaries/javascript/void-operator.json
Rick Winfrey dfc11385d8 ++tests
2016-10-14 13:40:07 -05:00

287 lines
8.6 KiB
JSON

[{
"testCaseDescription": "javascript-void-operator-insert-test",
"expectedResult": {
"changes": {
"void-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
9
]
}
},
"summary": "Added the 'void b()' operator"
}
]
},
"errors": {}
},
"filePaths": [
"void-operator.js"
],
"sha1": "55ba87e139fcd55bc3616dbfbb1f936afdff609e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ab0f0634de38b5a22473f9574c0208ad6a7eb68d"
}
,{
"testCaseDescription": "javascript-void-operator-replacement-insert-test",
"expectedResult": {
"changes": {
"void-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
9
]
}
},
"summary": "Added the 'void c()' operator"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
9
]
}
},
"summary": "Added the 'void b()' operator"
}
]
},
"errors": {}
},
"filePaths": [
"void-operator.js"
],
"sha1": "ab0f0634de38b5a22473f9574c0208ad6a7eb68d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "887229d2ddc0705cf998d97898a1c943669082da"
}
,{
"testCaseDescription": "javascript-void-operator-delete-insert-test",
"expectedResult": {
"changes": {
"void-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
6
],
"end": [
1,
7
]
},
{
"start": [
1,
6
],
"end": [
1,
7
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'b' identifier in the b() function call"
}
]
},
"errors": {}
},
"filePaths": [
"void-operator.js"
],
"sha1": "887229d2ddc0705cf998d97898a1c943669082da",
"gitDir": "test/corpus/repos/javascript",
"sha2": "fa29ae5d2207571e54b6deddcaff5c5108038f52"
}
,{
"testCaseDescription": "javascript-void-operator-replacement-test",
"expectedResult": {
"changes": {
"void-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
6
],
"end": [
1,
7
]
},
{
"start": [
1,
6
],
"end": [
1,
7
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'c' identifier in the c() function call"
}
]
},
"errors": {}
},
"filePaths": [
"void-operator.js"
],
"sha1": "fa29ae5d2207571e54b6deddcaff5c5108038f52",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c9966552e236f06ae5ffa076b449e55089f08a34"
}
,{
"testCaseDescription": "javascript-void-operator-delete-replacement-test",
"expectedResult": {
"changes": {
"void-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
9
]
}
},
"summary": "Deleted the 'void c()' operator"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
9
]
}
},
"summary": "Deleted the 'void b()' operator"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
9
]
}
},
"summary": "Added the 'void c()' operator"
}
]
},
"errors": {}
},
"filePaths": [
"void-operator.js"
],
"sha1": "c9966552e236f06ae5ffa076b449e55089f08a34",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7489a5f19ce1304e8f4267aa8f68b1f7d9c67ac2"
}
,{
"testCaseDescription": "javascript-void-operator-delete-test",
"expectedResult": {
"changes": {
"void-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
9
]
}
},
"summary": "Deleted the 'void b()' operator"
}
]
},
"errors": {}
},
"filePaths": [
"void-operator.js"
],
"sha1": "7489a5f19ce1304e8f4267aa8f68b1f7d9c67ac2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "57d46278c37cb3767e2df88d5b5a551442572de5"
}
,{
"testCaseDescription": "javascript-void-operator-delete-rest-test",
"expectedResult": {
"changes": {
"void-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
9
]
}
},
"summary": "Deleted the 'void c()' operator"
}
]
},
"errors": {}
},
"filePaths": [
"void-operator.js"
],
"sha1": "57d46278c37cb3767e2df88d5b5a551442572de5",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ef888d6d043b72dd4229c93518bb60b950cf0bf0"
}]