mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
309 lines
9.6 KiB
JSON
309 lines
9.6 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-identifier-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"identifier.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "identifier.js",
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'theVar' identifier",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"identifier.js"
|
|
],
|
|
"sha1": "1917c441d2b5dc77f63539a5df1e3cd7f0df97f3",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "dabf0b766bc1e9078802788c75696638b135bba4"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-identifier-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"identifier.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "identifier.js",
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'theVar2' identifier",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "identifier.js",
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'theVar' identifier",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"identifier.js"
|
|
],
|
|
"sha1": "dabf0b766bc1e9078802788c75696638b135bba4",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9a6ae9eaf5793972dbd956934afece901c3585de"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-identifier-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"identifier.js": [
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "identifier.js",
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "identifier.js",
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'theVar2' identifier with the 'theVar' identifier",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"identifier.js"
|
|
],
|
|
"sha1": "9a6ae9eaf5793972dbd956934afece901c3585de",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d47d4ca7f6adc50a478c132c0322581c6a97d9ba"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-identifier-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"identifier.js": [
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "identifier.js",
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "identifier.js",
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'theVar' identifier with the 'theVar2' identifier",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"identifier.js"
|
|
],
|
|
"sha1": "d47d4ca7f6adc50a478c132c0322581c6a97d9ba",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "cd4983604bbfbb1d68b3c3aa269b44bb18e7ec19"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-identifier-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"identifier.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "identifier.js",
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'theVar2' identifier",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "identifier.js",
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'theVar' identifier",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "identifier.js",
|
|
"end": [
|
|
2,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'theVar2' identifier",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"identifier.js"
|
|
],
|
|
"sha1": "cd4983604bbfbb1d68b3c3aa269b44bb18e7ec19",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f485b85280aefcea21b662c09b093cbe8bd7235b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-identifier-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"identifier.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "identifier.js",
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'theVar' identifier",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"identifier.js"
|
|
],
|
|
"sha1": "f485b85280aefcea21b662c09b093cbe8bd7235b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e88e8ecf1d1356117505cd93c05985d9d9f7309a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-identifier-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"identifier.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "identifier.js",
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'theVar2' identifier",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"identifier.js"
|
|
],
|
|
"sha1": "e88e8ecf1d1356117505cd93c05985d9d9f7309a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "324ef3f6d6409ee7a42609453d3259490538a470"
|
|
}]
|