1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 22:01:46 +03:00
semantic/test/corpus/diff-summaries/javascript/identifier.json
2016-10-11 15:13:51 -04:00

297 lines
9.0 KiB
JSON

[{
"testCaseDescription": "javascript-identifier-insert-test",
"expectedResult": {
"changes": {
"identifier.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Added the 'theVar' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"identifier.js"
],
"sha1": "326c0b42a3c17cfb9c231515f4cbe3c81c621f1c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "820fa9e9590b2599eceae072c5f58cdbdb9a537c"
}
,{
"testCaseDescription": "javascript-identifier-replacement-insert-test",
"expectedResult": {
"changes": {
"identifier.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Added the 'theVar2' identifier",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Added the 'theVar' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"identifier.js"
],
"sha1": "820fa9e9590b2599eceae072c5f58cdbdb9a537c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "2d5f6d80071c263cbc273856778d3251ce74517f"
}
,{
"testCaseDescription": "javascript-identifier-delete-insert-test",
"expectedResult": {
"changes": {
"identifier.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
8
]
},
{
"start": [
1,
1
],
"end": [
1,
7
]
}
]
},
"summary": "Replaced the 'theVar2' identifier with the 'theVar' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"identifier.js"
],
"sha1": "2d5f6d80071c263cbc273856778d3251ce74517f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3f31f4a9c07a65eb2798133713f2f34fcee799c8"
}
,{
"testCaseDescription": "javascript-identifier-replacement-test",
"expectedResult": {
"changes": {
"identifier.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
7
]
},
{
"start": [
1,
1
],
"end": [
1,
8
]
}
]
},
"summary": "Replaced the 'theVar' identifier with the 'theVar2' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"identifier.js"
],
"sha1": "3f31f4a9c07a65eb2798133713f2f34fcee799c8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "fd58b769ec4b48c0bee68cfe834c8bb1adcdb516"
}
,{
"testCaseDescription": "javascript-identifier-delete-replacement-test",
"expectedResult": {
"changes": {
"identifier.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Deleted the 'theVar2' identifier",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Deleted the 'theVar' identifier",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
8
]
}
},
"summary": "Added the 'theVar2' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"identifier.js"
],
"sha1": "fd58b769ec4b48c0bee68cfe834c8bb1adcdb516",
"gitDir": "test/corpus/repos/javascript",
"sha2": "2a566f75e47f4106c9d875d7090b32ba869ed332"
}
,{
"testCaseDescription": "javascript-identifier-delete-test",
"expectedResult": {
"changes": {
"identifier.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Deleted the 'theVar' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"identifier.js"
],
"sha1": "2a566f75e47f4106c9d875d7090b32ba869ed332",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ebe92c64b9f8a0a4b422493d741cff603d82974b"
}
,{
"testCaseDescription": "javascript-identifier-delete-rest-test",
"expectedResult": {
"changes": {
"identifier.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Deleted the 'theVar2' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"identifier.js"
],
"sha1": "ebe92c64b9f8a0a4b422493d741cff603d82974b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "35dca27c6725f2defede78609517066c5e1b30dc"
}]