mirror of
https://github.com/github/semantic.git
synced 2024-12-21 05:41:54 +03:00
309 lines
10 KiB
JSON
309 lines
10 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-math-assignment-operator-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"math-assignment-operator.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "math-assignment-operator.js",
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' math assignment",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"math-assignment-operator.js"
|
|
],
|
|
"sha1": "36746b2d6ba87364134adab0f0a1b24c9206dc15",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "926f27398fb4f6b893d7aef6c25aaa73b5febd43"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-math-assignment-operator-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"math-assignment-operator.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "math-assignment-operator.js",
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' math assignment",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"filepath": "math-assignment-operator.js",
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' math assignment",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"math-assignment-operator.js"
|
|
],
|
|
"sha1": "926f27398fb4f6b893d7aef6c25aaa73b5febd43",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9c14747b6048fd754a38cb03e590c14e78c251b0"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-math-assignment-operator-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"math-assignment-operator.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"filepath": "math-assignment-operator.js",
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"filepath": "math-assignment-operator.js",
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '2' with '1' in the x math assignment",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"math-assignment-operator.js"
|
|
],
|
|
"sha1": "9c14747b6048fd754a38cb03e590c14e78c251b0",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "532ffbd748f6e6c091a00b830ddc7f4a1f0db7d9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-math-assignment-operator-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"math-assignment-operator.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"filepath": "math-assignment-operator.js",
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"filepath": "math-assignment-operator.js",
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '1' with '2' in the x math assignment",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"math-assignment-operator.js"
|
|
],
|
|
"sha1": "532ffbd748f6e6c091a00b830ddc7f4a1f0db7d9",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "545504f9b2a6e43637c7ca9d177b1195cb01261f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-math-assignment-operator-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"math-assignment-operator.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "math-assignment-operator.js",
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' math assignment",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"filepath": "math-assignment-operator.js",
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' math assignment",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"filepath": "math-assignment-operator.js",
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' math assignment",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"math-assignment-operator.js"
|
|
],
|
|
"sha1": "545504f9b2a6e43637c7ca9d177b1195cb01261f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "7208427c499ba69f5888725545278be2106db3d5"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-math-assignment-operator-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"math-assignment-operator.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "math-assignment-operator.js",
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' math assignment",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"math-assignment-operator.js"
|
|
],
|
|
"sha1": "7208427c499ba69f5888725545278be2106db3d5",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "0ad9f6da8726302d846eec6f97575074d13ab5a6"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-math-assignment-operator-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"math-assignment-operator.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "math-assignment-operator.js",
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' math assignment",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"math-assignment-operator.js"
|
|
],
|
|
"sha1": "0ad9f6da8726302d846eec6f97575074d13ab5a6",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "04b4cf44ac56798ef4a911f2e996686abbb4ab8d"
|
|
}]
|