mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
317 lines
9.4 KiB
JSON
317 lines
9.4 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-true-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"true.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "true.js",
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'true'",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"true.js"
|
|
],
|
|
"sha1": "1629fb4f8707806f5be1e2cef413d2b828064f0b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "94cc02f4e6099bf670e487a67e0b4d780932f2cf"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-true-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"true.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "true.js",
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'true' return statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "true.js",
|
|
"end": [
|
|
2,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'true'",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"true.js"
|
|
],
|
|
"sha1": "94cc02f4e6099bf670e487a67e0b4d780932f2cf",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "356f076ff1abcc3dd92cf1a55175b4fa93736565"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-true-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"true.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "true.js",
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'true'",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "true.js",
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'true' return statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"true.js"
|
|
],
|
|
"sha1": "356f076ff1abcc3dd92cf1a55175b4fa93736565",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9581e3270470aac80cd09c9512dab08e0aebc733"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-true-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"true.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "true.js",
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'true' return statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "true.js",
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'true'",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"true.js"
|
|
],
|
|
"sha1": "9581e3270470aac80cd09c9512dab08e0aebc733",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "561495b8d383328d5e897ddda7e1faba194f69ae"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-true-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"true.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "true.js",
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'true' return statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "true.js",
|
|
"end": [
|
|
2,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'true'",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "true.js",
|
|
"end": [
|
|
2,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'true' return statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"true.js"
|
|
],
|
|
"sha1": "561495b8d383328d5e897ddda7e1faba194f69ae",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "471d26ce0f0e66973181d3912a27a619ad3a8795"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-true-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"true.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "true.js",
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'true'",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"true.js"
|
|
],
|
|
"sha1": "471d26ce0f0e66973181d3912a27a619ad3a8795",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e6498022517e3044ed8c9cd284c82ace50342a7c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-true-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"true.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "true.js",
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'true' return statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"true.js"
|
|
],
|
|
"sha1": "e6498022517e3044ed8c9cd284c82ace50342a7c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "2729ff0e359b38bda1f650d3283d4116dc2fa3ad"
|
|
}]
|