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/for-statement.json
2016-10-11 12:00:34 -04:00

309 lines
9.8 KiB
JSON

[{
"testCaseDescription": "javascript-for-statement-insert-test",
"expectedResult": {
"changes": {
"for-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"name": "for-statement.js",
"end": [
1,
45
]
}
},
"summary": "Added the 'i = 0, init(); i < 10; i++' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-statement.js"
],
"sha1": "0f63f399f084244c4cfcd918876a8c5e659e8ade",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7099da096426789e903a008322119184fe353667"
}
,{
"testCaseDescription": "javascript-for-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"for-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"name": "for-statement.js",
"end": [
1,
46
]
}
},
"summary": "Added the 'i = 0, init(); i < 100; i++' for statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"name": "for-statement.js",
"end": [
2,
45
]
}
},
"summary": "Added the 'i = 0, init(); i < 10; i++' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-statement.js"
],
"sha1": "7099da096426789e903a008322119184fe353667",
"gitDir": "test/corpus/repos/javascript",
"sha2": "74f2e9af36fcd6da27f51ac28ae448b4265bbc35"
}
,{
"testCaseDescription": "javascript-for-statement-delete-insert-test",
"expectedResult": {
"changes": {
"for-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
25
],
"name": "for-statement.js",
"end": [
1,
28
]
},
{
"start": [
1,
25
],
"name": "for-statement.js",
"end": [
1,
27
]
}
]
},
"summary": "Replaced '100' with '10'",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-statement.js"
],
"sha1": "74f2e9af36fcd6da27f51ac28ae448b4265bbc35",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b01d035ff217d4670f859865b248f6d076181288"
}
,{
"testCaseDescription": "javascript-for-statement-replacement-test",
"expectedResult": {
"changes": {
"for-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
25
],
"name": "for-statement.js",
"end": [
1,
27
]
},
{
"start": [
1,
25
],
"name": "for-statement.js",
"end": [
1,
28
]
}
]
},
"summary": "Replaced '10' with '100'",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-statement.js"
],
"sha1": "b01d035ff217d4670f859865b248f6d076181288",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8182996a9a072de805b19ceb80bc6d39d8693537"
}
,{
"testCaseDescription": "javascript-for-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"for-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "for-statement.js",
"end": [
1,
46
]
}
},
"summary": "Deleted the 'i = 0, init(); i < 100; i++' for statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"name": "for-statement.js",
"end": [
2,
45
]
}
},
"summary": "Deleted the 'i = 0, init(); i < 10; i++' for statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"name": "for-statement.js",
"end": [
2,
46
]
}
},
"summary": "Added the 'i = 0, init(); i < 100; i++' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-statement.js"
],
"sha1": "8182996a9a072de805b19ceb80bc6d39d8693537",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9f53049277b37934e3a5cdeb842cc1eb2db27042"
}
,{
"testCaseDescription": "javascript-for-statement-delete-test",
"expectedResult": {
"changes": {
"for-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "for-statement.js",
"end": [
1,
45
]
}
},
"summary": "Deleted the 'i = 0, init(); i < 10; i++' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-statement.js"
],
"sha1": "9f53049277b37934e3a5cdeb842cc1eb2db27042",
"gitDir": "test/corpus/repos/javascript",
"sha2": "592a641594a1bed9a74e1a439ca9c437cd99e2c0"
}
,{
"testCaseDescription": "javascript-for-statement-delete-rest-test",
"expectedResult": {
"changes": {
"for-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "for-statement.js",
"end": [
1,
46
]
}
},
"summary": "Deleted the 'i = 0, init(); i < 100; i++' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-statement.js"
],
"sha1": "592a641594a1bed9a74e1a439ca9c437cd99e2c0",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7c328351e5e8debb38b46a45f43481581e438666"
}]