1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +03:00
semantic/test/corpus/diff-summaries/javascript/if.json

297 lines
8.8 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-if-insert-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
19
]
}
},
"summary": "Added the 'x' if statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "019ed2c1f543531ab1678c9fcd7dd223ad5ca8b2",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "a4b4113212a03138f0546396dfb35170538bb846"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-if-replacement-insert-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
24
]
}
},
"summary": "Added the 'a.b' if statement",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
19
]
}
},
"summary": "Added the 'x' if statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "a4b4113212a03138f0546396dfb35170538bb846",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "874a29b843b633497b98f99ab606daa42e02402f"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-if-delete-insert-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
1
],
"end": [
1,
24
]
},
{
"start": [
1,
1
],
"end": [
1,
19
]
}
]
},
"summary": "Replaced the 'a.b' if statement with the 'x' if statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "874a29b843b633497b98f99ab606daa42e02402f",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "16128f22ec566f5acbb690d0ef838d6227cdd402"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-if-replacement-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
1
],
"end": [
1,
19
]
},
{
"start": [
1,
1
],
"end": [
1,
24
]
}
]
},
"summary": "Replaced the 'x' if statement with the 'a.b' if statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "16128f22ec566f5acbb690d0ef838d6227cdd402",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "9fd01fbbfa583c431e65fa74fb11ab8bfce478a5"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-if-delete-replacement-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
24
]
}
},
"summary": "Deleted the 'a.b' if statement",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
19
]
}
},
"summary": "Deleted the 'x' if statement",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
24
]
}
},
"summary": "Added the 'a.b' if statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "9fd01fbbfa583c431e65fa74fb11ab8bfce478a5",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "e7e84a047077fb4d105e58efd5866b2ac0a4d12a"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-if-delete-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
19
]
}
},
"summary": "Deleted the 'x' if statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "e7e84a047077fb4d105e58efd5866b2ac0a4d12a",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "c026ca9c14269cbdaa6e276375c1e6a635e93067"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-if-delete-rest-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
24
]
}
},
"summary": "Deleted the 'a.b' if statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "c026ca9c14269cbdaa6e276375c1e6a635e93067",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "cb6ecdcdc2f19afb8b09b417b7b3789de92bbe2c"
2016-10-11 18:12:20 +03:00
}]