1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/javascript/comment.json
2016-10-11 11:26:57 -04:00

309 lines
9.7 KiB
JSON

[{
"testCaseDescription": "javascript-comment-insert-test",
"expectedResult": {
"changes": {
"comment.js": [
{
"span": {
"that": {
"start": [
1,
1
],
"name": "comment.js",
"end": [
1,
22
]
}
},
"summary": "Added the '// This is a property' comment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"comment.js"
],
"sha1": "72fe137f23a68d773c76719f790807ead00ef84a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e5586684ed84dd036c71083544925f5230281b6f"
}
,{
"testCaseDescription": "javascript-comment-replacement-insert-test",
"expectedResult": {
"changes": {
"comment.js": [
{
"span": {
"that": {
"start": [
1,
1
],
"name": "comment.js",
"end": [
3,
3
]
}
},
"summary": "Added the '/*\n * This is a method\n*/' comment",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
4,
1
],
"name": "comment.js",
"end": [
4,
22
]
}
},
"summary": "Added the '// This is a property' comment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"comment.js"
],
"sha1": "e5586684ed84dd036c71083544925f5230281b6f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7555438a387aedf7944f925ea199c6feec2ddf69"
}
,{
"testCaseDescription": "javascript-comment-delete-insert-test",
"expectedResult": {
"changes": {
"comment.js": [
{
"span": {
"these": [
{
"start": [
1,
1
],
"name": "comment.js",
"end": [
3,
3
]
},
{
"start": [
1,
1
],
"name": "comment.js",
"end": [
1,
22
]
}
]
},
"summary": "Replaced the '/*\n * This is a method\n*/' comment with the '// This is a property' comment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"comment.js"
],
"sha1": "7555438a387aedf7944f925ea199c6feec2ddf69",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e6271149f264d81f8cf188641f7f75b36ba477f9"
}
,{
"testCaseDescription": "javascript-comment-replacement-test",
"expectedResult": {
"changes": {
"comment.js": [
{
"span": {
"these": [
{
"start": [
1,
1
],
"name": "comment.js",
"end": [
1,
22
]
},
{
"start": [
1,
1
],
"name": "comment.js",
"end": [
3,
3
]
}
]
},
"summary": "Replaced the '// This is a property' comment with the '/*\n * This is a method\n*/' comment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"comment.js"
],
"sha1": "e6271149f264d81f8cf188641f7f75b36ba477f9",
"gitDir": "test/corpus/repos/javascript",
"sha2": "103e537a1240bdeaeb6b28663f43daacbd1cd824"
}
,{
"testCaseDescription": "javascript-comment-delete-replacement-test",
"expectedResult": {
"changes": {
"comment.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "comment.js",
"end": [
3,
3
]
}
},
"summary": "Deleted the '/*\n * This is a method\n*/' comment",
"tag": "JSONSummary"
},
{
"span": {
"this": {
"start": [
4,
1
],
"name": "comment.js",
"end": [
4,
22
]
}
},
"summary": "Deleted the '// This is a property' comment",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
2,
1
],
"name": "comment.js",
"end": [
4,
3
]
}
},
"summary": "Added the '/*\n * This is a method\n*/' comment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"comment.js"
],
"sha1": "103e537a1240bdeaeb6b28663f43daacbd1cd824",
"gitDir": "test/corpus/repos/javascript",
"sha2": "073a2a8ff5f61ca471f2b8152207301fb0583d3c"
}
,{
"testCaseDescription": "javascript-comment-delete-test",
"expectedResult": {
"changes": {
"comment.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "comment.js",
"end": [
1,
22
]
}
},
"summary": "Deleted the '// This is a property' comment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"comment.js"
],
"sha1": "073a2a8ff5f61ca471f2b8152207301fb0583d3c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "cac56c3383233f34fe16d2427d319aac5f4ef1e8"
}
,{
"testCaseDescription": "javascript-comment-delete-rest-test",
"expectedResult": {
"changes": {
"comment.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "comment.js",
"end": [
3,
3
]
}
},
"summary": "Deleted the '/*\n * This is a method\n*/' comment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"comment.js"
],
"sha1": "cac56c3383233f34fe16d2427d319aac5f4ef1e8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ebc2ca02f6b0c4744e33e2d191158cc7f2b19a60"
}]