1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/javascript/assignment.json
2016-10-14 12:19:31 -04:00

287 lines
8.5 KiB
JSON

[{
"testCaseDescription": "javascript-assignment-insert-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Added the 'x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"sha1": "873f900a25ee37c895a4ee6fa350c9b94f53be99",
"gitDir": "test/corpus/repos/javascript",
"sha2": "cb393e6e14c8599a66dca72d35a3ec977ea3b8b8"
}
,{
"testCaseDescription": "javascript-assignment-replacement-insert-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Added the 'x' assignment"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
6
]
}
},
"summary": "Added the 'x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"sha1": "cb393e6e14c8599a66dca72d35a3ec977ea3b8b8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6ddbeca055f9d8c7b34fb74327b93ded8cc3c0d6"
}
,{
"testCaseDescription": "javascript-assignment-delete-insert-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
"replace": [
{
"start": [
1,
5
],
"end": [
1,
6
]
},
{
"start": [
1,
5
],
"end": [
1,
6
]
}
]
},
"summary": "Replaced '1' with '0' in an assignment to x"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"sha1": "6ddbeca055f9d8c7b34fb74327b93ded8cc3c0d6",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9afe58d40ec58f0f4faad229e134f3ebe8bb8762"
}
,{
"testCaseDescription": "javascript-assignment-replacement-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
"replace": [
{
"start": [
1,
5
],
"end": [
1,
6
]
},
{
"start": [
1,
5
],
"end": [
1,
6
]
}
]
},
"summary": "Replaced '0' with '1' in an assignment to x"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"sha1": "9afe58d40ec58f0f4faad229e134f3ebe8bb8762",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a1996cab3d96f7a31e4b583642d8cbdb9bd908bc"
}
,{
"testCaseDescription": "javascript-assignment-delete-replacement-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted the 'x' assignment"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
6
]
}
},
"summary": "Deleted the 'x' assignment"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
6
]
}
},
"summary": "Added the 'x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"sha1": "a1996cab3d96f7a31e4b583642d8cbdb9bd908bc",
"gitDir": "test/corpus/repos/javascript",
"sha2": "fb2003b1876d8b3325e2c4c9a1494119b8616084"
}
,{
"testCaseDescription": "javascript-assignment-delete-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted the 'x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"sha1": "fb2003b1876d8b3325e2c4c9a1494119b8616084",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f1cbe2562e84bf2df2e07b2927235f3441fa790d"
}
,{
"testCaseDescription": "javascript-assignment-delete-rest-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted the 'x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"sha1": "f1cbe2562e84bf2df2e07b2927235f3441fa790d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "06498bf390f8e2481c9c1e38206d346338d60321"
}]