mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +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": "86a4766c9b2b6e994ff9c462fbd636ccf6b46453",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "03481e7d330b88cf8776fa74552076ce59d9cc15"
|
|
}
|
|
,{
|
|
"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": "03481e7d330b88cf8776fa74552076ce59d9cc15",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "efe30b61ed95a01e57c66a95b8219237ce36daf4"
|
|
}
|
|
,{
|
|
"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": "efe30b61ed95a01e57c66a95b8219237ce36daf4",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "cf1c97744d53f0c3f58a0a642d1e441b74b7342a"
|
|
}
|
|
,{
|
|
"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": "cf1c97744d53f0c3f58a0a642d1e441b74b7342a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "50a0fbdd6bde2f17d715a341763d53f0bb048579"
|
|
}
|
|
,{
|
|
"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": "50a0fbdd6bde2f17d715a341763d53f0bb048579",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e008246c32338288995cd6bf9c0a1831429a07df"
|
|
}
|
|
,{
|
|
"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": "e008246c32338288995cd6bf9c0a1831429a07df",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "adb16d8b2484ffc1af079908f8e7b1aff68ed5b2"
|
|
}
|
|
,{
|
|
"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": "adb16d8b2484ffc1af079908f8e7b1aff68ed5b2",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9bada1cd753b4e09425916015e51e87ad20dad6d"
|
|
}]
|