mirror of
https://github.com/github/semantic.git
synced 2024-12-24 15:35:14 +03:00
369 lines
12 KiB
JSON
369 lines
12 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-switch-statement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"switch-statement.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "switch-statement.js",
|
|
"end": [
|
|
1,
|
|
48
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '1' switch statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"switch-statement.js"
|
|
],
|
|
"sha1": "ebc2ca02f6b0c4744e33e2d191158cc7f2b19a60",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "cbc2b0ea47a2cd6fb09368f3c72e101f946c4b26"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-switch-statement-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"switch-statement.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "switch-statement.js",
|
|
"end": [
|
|
1,
|
|
48
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '2' switch statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "switch-statement.js",
|
|
"end": [
|
|
2,
|
|
48
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '1' switch statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"switch-statement.js"
|
|
],
|
|
"sha1": "cbc2b0ea47a2cd6fb09368f3c72e101f946c4b26",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e61491adc3ae0a36743a2fb5a3be26e57637593b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-switch-statement-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"switch-statement.js": [
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"name": "switch-statement.js",
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"name": "switch-statement.js",
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '2' with '1'",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
33
|
|
],
|
|
"name": "switch-statement.js",
|
|
"end": [
|
|
1,
|
|
34
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
33
|
|
],
|
|
"name": "switch-statement.js",
|
|
"end": [
|
|
1,
|
|
34
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '2' with '1'",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"switch-statement.js"
|
|
],
|
|
"sha1": "e61491adc3ae0a36743a2fb5a3be26e57637593b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c62f3ccb77ecb50b8f61d3d058f05a27d4187227"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-switch-statement-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"switch-statement.js": [
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"name": "switch-statement.js",
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"name": "switch-statement.js",
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '1' with '2'",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
33
|
|
],
|
|
"name": "switch-statement.js",
|
|
"end": [
|
|
1,
|
|
34
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
33
|
|
],
|
|
"name": "switch-statement.js",
|
|
"end": [
|
|
1,
|
|
34
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '1' with '2'",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"switch-statement.js"
|
|
],
|
|
"sha1": "c62f3ccb77ecb50b8f61d3d058f05a27d4187227",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "08f399fd747b15cef9703dc4f05efd330258e832"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-switch-statement-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"switch-statement.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "switch-statement.js",
|
|
"end": [
|
|
1,
|
|
48
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '2' switch statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "switch-statement.js",
|
|
"end": [
|
|
2,
|
|
48
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '1' switch statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "switch-statement.js",
|
|
"end": [
|
|
2,
|
|
48
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '2' switch statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"switch-statement.js"
|
|
],
|
|
"sha1": "08f399fd747b15cef9703dc4f05efd330258e832",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "100b2392d9286d71b1c1910ddacd28ca2a96284b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-switch-statement-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"switch-statement.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "switch-statement.js",
|
|
"end": [
|
|
1,
|
|
48
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '1' switch statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"switch-statement.js"
|
|
],
|
|
"sha1": "100b2392d9286d71b1c1910ddacd28ca2a96284b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f033612791a0f3ff8aa0d4313044903cd7eb8b9a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-switch-statement-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"switch-statement.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "switch-statement.js",
|
|
"end": [
|
|
1,
|
|
48
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '2' switch statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"switch-statement.js"
|
|
],
|
|
"sha1": "f033612791a0f3ff8aa0d4313044903cd7eb8b9a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "70fe15f33094a3e5dc81081f9bd30e2baa0ff885"
|
|
}]
|