mirror of
https://github.com/github/semantic.git
synced 2024-12-26 00:12:29 +03:00
287 lines
8.5 KiB
JSON
287 lines
8.5 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-regex-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"regex.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '/one/g' regex"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"regex.js"
|
|
],
|
|
"sha1": "6c5d2f8381454312d9b09faa78a5906a62be7bf1",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d0171c53599d911bc84b456de29fc93fb0d834fb"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-regex-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"regex.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '/on[^/]afe/gim' regex"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '/one/g' regex"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"regex.js"
|
|
],
|
|
"sha1": "d0171c53599d911bc84b456de29fc93fb0d834fb",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "03a3616f5d44c2e9b6bec34bffe2e6e255ba8dd9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-regex-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"regex.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '/on[^/]afe/gim' regex with the '/one/g' regex"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"regex.js"
|
|
],
|
|
"sha1": "03a3616f5d44c2e9b6bec34bffe2e6e255ba8dd9",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "8b9f5160d107a289602b45bd72cfc6baacc45a95"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-regex-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"regex.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
15
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '/one/g' regex with the '/on[^/]afe/gim' regex"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"regex.js"
|
|
],
|
|
"sha1": "8b9f5160d107a289602b45bd72cfc6baacc45a95",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e64417a24f0e8ff077f9540c5a1157653bfafa04"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-regex-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"regex.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '/on[^/]afe/gim' regex"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '/one/g' regex"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '/on[^/]afe/gim' regex"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"regex.js"
|
|
],
|
|
"sha1": "e64417a24f0e8ff077f9540c5a1157653bfafa04",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "90a2372e45fac48c3ebb06f07ba7bb1466c7f16a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-regex-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"regex.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '/one/g' regex"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"regex.js"
|
|
],
|
|
"sha1": "90a2372e45fac48c3ebb06f07ba7bb1466c7f16a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9130722fb2238f56d674c95fbaa62fc4d6a39abe"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-regex-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"regex.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '/on[^/]afe/gim' regex"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"regex.js"
|
|
],
|
|
"sha1": "9130722fb2238f56d674c95fbaa62fc4d6a39abe",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "3446a59224e0232fb851ace17dda13106fa50beb"
|
|
}]
|