mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
317 lines
9.5 KiB
JSON
317 lines
9.5 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-true-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"true.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "true.js",
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'true'",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"true.js"
|
|
],
|
|
"sha1": "824ee002efef5456f35f7ccf48e0991891cafc57",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "80ec45b5c5be7b6580cf6335811a63e0678f5d76"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-true-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"true.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "true.js",
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'true' return statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"filepath": "true.js",
|
|
"end": [
|
|
2,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'true'",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"true.js"
|
|
],
|
|
"sha1": "80ec45b5c5be7b6580cf6335811a63e0678f5d76",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "023fb246c0d4434e5803e4d2146fa347b66f1898"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-true-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"true.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "true.js",
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'true'",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "true.js",
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'true' return statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"true.js"
|
|
],
|
|
"sha1": "023fb246c0d4434e5803e4d2146fa347b66f1898",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e6f76e586bd9ddb0a235e999eaa57602af8ccb1b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-true-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"true.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "true.js",
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'true' return statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "true.js",
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'true'",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"true.js"
|
|
],
|
|
"sha1": "e6f76e586bd9ddb0a235e999eaa57602af8ccb1b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f564b8abd977c41082d593c5662ade8d130b14ca"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-true-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"true.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "true.js",
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'true' return statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"filepath": "true.js",
|
|
"end": [
|
|
2,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'true'",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"filepath": "true.js",
|
|
"end": [
|
|
2,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'true' return statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"true.js"
|
|
],
|
|
"sha1": "f564b8abd977c41082d593c5662ade8d130b14ca",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "85a35504f36a68bd2118b79afe7931b627597b28"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-true-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"true.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "true.js",
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'true'",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"true.js"
|
|
],
|
|
"sha1": "85a35504f36a68bd2118b79afe7931b627597b28",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "98083e291fb4e869d1327d14e78523f1c966fead"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-true-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"true.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "true.js",
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'true' return statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"true.js"
|
|
],
|
|
"sha1": "98083e291fb4e869d1327d14e78523f1c966fead",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "4bdbc3b261a181ab8a66d17f1946997d7cf9e70c"
|
|
}]
|