1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
semantic/test/corpus/diff-summaries/javascript/switch-statement.json
2016-10-14 12:12:38 -04:00

341 lines
10 KiB
JSON

[{
"testCaseDescription": "javascript-switch-statement-insert-test",
"expectedResult": {
"changes": {
"switch-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
48
]
}
},
"summary": "Added the '1' switch statement"
}
]
},
"errors": {}
},
"filePaths": [
"switch-statement.js"
],
"sha1": "2a4b7bdb973102a28a097e416a5bdeb3c3eb8f40",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6710d84b7cd11292670ac80895d0341e190ba918"
}
,{
"testCaseDescription": "javascript-switch-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"switch-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
48
]
}
},
"summary": "Added the '2' switch statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
48
]
}
},
"summary": "Added the '1' switch statement"
}
]
},
"errors": {}
},
"filePaths": [
"switch-statement.js"
],
"sha1": "6710d84b7cd11292670ac80895d0341e190ba918",
"gitDir": "test/corpus/repos/javascript",
"sha2": "acfd0023d5e503b39243482e641825d7904d079d"
}
,{
"testCaseDescription": "javascript-switch-statement-delete-insert-test",
"expectedResult": {
"changes": {
"switch-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
9
],
"end": [
1,
10
]
},
{
"start": [
1,
9
],
"end": [
1,
10
]
}
]
},
"summary": "Replaced '2' with '1'"
},
{
"span": {
"replace": [
{
"start": [
1,
33
],
"end": [
1,
34
]
},
{
"start": [
1,
33
],
"end": [
1,
34
]
}
]
},
"summary": "Replaced '2' with '1'"
}
]
},
"errors": {}
},
"filePaths": [
"switch-statement.js"
],
"sha1": "acfd0023d5e503b39243482e641825d7904d079d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7dde22f67ec04e499962afa8f33656c830915b5e"
}
,{
"testCaseDescription": "javascript-switch-statement-replacement-test",
"expectedResult": {
"changes": {
"switch-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
9
],
"end": [
1,
10
]
},
{
"start": [
1,
9
],
"end": [
1,
10
]
}
]
},
"summary": "Replaced '1' with '2'"
},
{
"span": {
"replace": [
{
"start": [
1,
33
],
"end": [
1,
34
]
},
{
"start": [
1,
33
],
"end": [
1,
34
]
}
]
},
"summary": "Replaced '1' with '2'"
}
]
},
"errors": {}
},
"filePaths": [
"switch-statement.js"
],
"sha1": "7dde22f67ec04e499962afa8f33656c830915b5e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "726ffcccc873c5d024b0653c2ddd802fff339662"
}
,{
"testCaseDescription": "javascript-switch-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"switch-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
48
]
}
},
"summary": "Deleted the '2' switch statement"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
48
]
}
},
"summary": "Deleted the '1' switch statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
48
]
}
},
"summary": "Added the '2' switch statement"
}
]
},
"errors": {}
},
"filePaths": [
"switch-statement.js"
],
"sha1": "726ffcccc873c5d024b0653c2ddd802fff339662",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9b17015bdb3e7160739ad34d167cae94828210a4"
}
,{
"testCaseDescription": "javascript-switch-statement-delete-test",
"expectedResult": {
"changes": {
"switch-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
48
]
}
},
"summary": "Deleted the '1' switch statement"
}
]
},
"errors": {}
},
"filePaths": [
"switch-statement.js"
],
"sha1": "9b17015bdb3e7160739ad34d167cae94828210a4",
"gitDir": "test/corpus/repos/javascript",
"sha2": "230121cfe03822b28c9987376313f853719a8bb7"
}
,{
"testCaseDescription": "javascript-switch-statement-delete-rest-test",
"expectedResult": {
"changes": {
"switch-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
48
]
}
},
"summary": "Deleted the '2' switch statement"
}
]
},
"errors": {}
},
"filePaths": [
"switch-statement.js"
],
"sha1": "230121cfe03822b28c9987376313f853719a8bb7",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6028026b8c519e4e44bcb5062fabb760e7562783"
}]