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": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "switch-statement.js",
|
|
"end": [
|
|
1,
|
|
48
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '1' switch statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"switch-statement.js"
|
|
],
|
|
"sha1": "bfb8c510e7246eadb01815b4ede83df2539e0444",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "cffd698ffab376418fd7e98dcb8f212bf779c152"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-switch-statement-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"switch-statement.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "switch-statement.js",
|
|
"end": [
|
|
1,
|
|
48
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '2' switch statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"filepath": "switch-statement.js",
|
|
"end": [
|
|
2,
|
|
48
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '1' switch statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"switch-statement.js"
|
|
],
|
|
"sha1": "cffd698ffab376418fd7e98dcb8f212bf779c152",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "fe0a5807950f18111371be832bff615aaf4771e1"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-switch-statement-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"switch-statement.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"filepath": "switch-statement.js",
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"filepath": "switch-statement.js",
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '2' with '1'",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
33
|
|
],
|
|
"filepath": "switch-statement.js",
|
|
"end": [
|
|
1,
|
|
34
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
33
|
|
],
|
|
"filepath": "switch-statement.js",
|
|
"end": [
|
|
1,
|
|
34
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '2' with '1'",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"switch-statement.js"
|
|
],
|
|
"sha1": "fe0a5807950f18111371be832bff615aaf4771e1",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "5cb6917d7e0e3c4adf78440881e9af1ff6487bfe"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-switch-statement-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"switch-statement.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"filepath": "switch-statement.js",
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"filepath": "switch-statement.js",
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '1' with '2'",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
33
|
|
],
|
|
"filepath": "switch-statement.js",
|
|
"end": [
|
|
1,
|
|
34
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
33
|
|
],
|
|
"filepath": "switch-statement.js",
|
|
"end": [
|
|
1,
|
|
34
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '1' with '2'",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"switch-statement.js"
|
|
],
|
|
"sha1": "5cb6917d7e0e3c4adf78440881e9af1ff6487bfe",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "0270644f5d84b63561dd236148524c7f5fe50c16"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-switch-statement-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"switch-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "switch-statement.js",
|
|
"end": [
|
|
1,
|
|
48
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '2' switch statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"filepath": "switch-statement.js",
|
|
"end": [
|
|
2,
|
|
48
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '1' switch statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"filepath": "switch-statement.js",
|
|
"end": [
|
|
2,
|
|
48
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '2' switch statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"switch-statement.js"
|
|
],
|
|
"sha1": "0270644f5d84b63561dd236148524c7f5fe50c16",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "acbbc8dc48d1a9219c65cb184643745ac0e809db"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-switch-statement-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"switch-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "switch-statement.js",
|
|
"end": [
|
|
1,
|
|
48
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '1' switch statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"switch-statement.js"
|
|
],
|
|
"sha1": "acbbc8dc48d1a9219c65cb184643745ac0e809db",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b896aeece3867da6d71c11f6191b958b6f876b1c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-switch-statement-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"switch-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "switch-statement.js",
|
|
"end": [
|
|
1,
|
|
48
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '2' switch statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"switch-statement.js"
|
|
],
|
|
"sha1": "b896aeece3867da6d71c11f6191b958b6f876b1c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "87ee63679cf89692a390eb921ae462b11b4a06e0"
|
|
}]
|