mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
287 lines
8.7 KiB
JSON
287 lines
8.7 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-comment-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comment.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '// This is a property' comment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comment.js"
|
|
],
|
|
"sha1": "9966bf3346783a8e39f77cc3b61f8c24f851b0ed",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "0b532cc7ac2078fb6421efad2fba431eebf8b079"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comment-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comment.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '/*\n * This is a method\n*/' comment"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '// This is a property' comment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comment.js"
|
|
],
|
|
"sha1": "0b532cc7ac2078fb6421efad2fba431eebf8b079",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "22391ec032d8cf2569c2c79daf9edd535fd5ae1f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comment-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comment.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
3
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
22
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '/*\n * This is a method\n*/' comment with the '// This is a property' comment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comment.js"
|
|
],
|
|
"sha1": "22391ec032d8cf2569c2c79daf9edd535fd5ae1f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d2e01036c8e33e37b082368f832c642e1498419d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comment-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comment.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
22
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
3
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '// This is a property' comment with the '/*\n * This is a method\n*/' comment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comment.js"
|
|
],
|
|
"sha1": "d2e01036c8e33e37b082368f832c642e1498419d",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "53dd565d968e321c83e7d55a640b941ec039ae9d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comment-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comment.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '/*\n * This is a method\n*/' comment"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '// This is a property' comment"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '/*\n * This is a method\n*/' comment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comment.js"
|
|
],
|
|
"sha1": "53dd565d968e321c83e7d55a640b941ec039ae9d",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f44bdb127231af5416f02054c41452de18136eb1"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comment-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comment.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '// This is a property' comment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comment.js"
|
|
],
|
|
"sha1": "f44bdb127231af5416f02054c41452de18136eb1",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "4d5c2aa9348d27a4efe63e93dd6ea597d1ab60f0"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-comment-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"comment.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '/*\n * This is a method\n*/' comment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"comment.js"
|
|
],
|
|
"sha1": "4d5c2aa9348d27a4efe63e93dd6ea597d1ab60f0",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d0223efd366c0d9b703a6edf4b9961fa26add3cb"
|
|
}]
|