1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 06:11:49 +03:00
semantic/test/corpus/diff-summaries/javascript/for-in-statement.json

429 lines
14 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-for-in-statement-insert-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"name": "for-in-statement.js",
"end": [
1,
35
]
}
},
"summary": "Added the 'thing in things' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "7fe4e0b214260f0482129909a00b5146e3bfc1da",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "6bab84255f645c5440731291f1b3e2405e608dcb"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-for-in-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"name": "for-in-statement.js",
"end": [
1,
32
]
}
},
"summary": "Added the 'item in items' for statement",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"name": "for-in-statement.js",
"end": [
2,
35
]
}
},
"summary": "Added the 'thing in things' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "6bab84255f645c5440731291f1b3e2405e608dcb",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "229e0057d54bdb3dddabd1b1f4c5b520dc7b5617"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-for-in-statement-delete-insert-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
6
],
"name": "for-in-statement.js",
"end": [
1,
10
]
},
{
"start": [
1,
6
],
"name": "for-in-statement.js",
"end": [
1,
11
]
}
]
},
"summary": "Replaced the 'item' identifier with the 'thing' identifier",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
14
],
"name": "for-in-statement.js",
"end": [
1,
19
]
},
{
"start": [
1,
15
],
"name": "for-in-statement.js",
"end": [
1,
21
]
}
]
},
"summary": "Replaced the 'items' identifier with the 'things' identifier",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
23
],
"name": "for-in-statement.js",
"end": [
1,
27
]
},
{
"start": [
1,
25
],
"name": "for-in-statement.js",
"end": [
1,
30
]
}
]
},
"summary": "Replaced the 'item' identifier with the 'thing' identifier in the thing() function call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "229e0057d54bdb3dddabd1b1f4c5b520dc7b5617",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "db98b8a60e7b0eeac50e68d6b4b5c8d4f557ca9e"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-for-in-statement-replacement-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
6
],
"name": "for-in-statement.js",
"end": [
1,
11
]
},
{
"start": [
1,
6
],
"name": "for-in-statement.js",
"end": [
1,
10
]
}
]
},
"summary": "Replaced the 'thing' identifier with the 'item' identifier",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
15
],
"name": "for-in-statement.js",
"end": [
1,
21
]
},
{
"start": [
1,
14
],
"name": "for-in-statement.js",
"end": [
1,
19
]
}
]
},
"summary": "Replaced the 'things' identifier with the 'items' identifier",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
25
],
"name": "for-in-statement.js",
"end": [
1,
30
]
},
{
"start": [
1,
23
],
"name": "for-in-statement.js",
"end": [
1,
27
]
}
]
},
"summary": "Replaced the 'thing' identifier with the 'item' identifier in the item() function call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "db98b8a60e7b0eeac50e68d6b4b5c8d4f557ca9e",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "35dffb6c595ca8dbd5e2d557271f29b573177e79"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-for-in-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"name": "for-in-statement.js",
"end": [
1,
32
]
}
},
"summary": "Deleted the 'item in items' for statement",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"name": "for-in-statement.js",
"end": [
2,
35
]
}
},
"summary": "Deleted the 'thing in things' for statement",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"name": "for-in-statement.js",
"end": [
2,
32
]
}
},
"summary": "Added the 'item in items' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "35dffb6c595ca8dbd5e2d557271f29b573177e79",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "ad88456eafdc0e88fec2dc3677bfcc5c7f37c310"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-for-in-statement-delete-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"name": "for-in-statement.js",
"end": [
1,
35
]
}
},
"summary": "Deleted the 'thing in things' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "ad88456eafdc0e88fec2dc3677bfcc5c7f37c310",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "13399a918cf13accf13f9001b70995b677ba4467"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-for-in-statement-delete-rest-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"name": "for-in-statement.js",
"end": [
1,
32
]
}
},
"summary": "Deleted the 'item in items' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "13399a918cf13accf13f9001b70995b677ba4467",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "ff9c3e1416340f9c41efe59880ae44b658ff4bf3"
2016-10-11 18:12:20 +03:00
}]