mirror of
https://github.com/github/semantic.git
synced 2024-12-21 22:01:46 +03:00
297 lines
8.9 KiB
JSON
297 lines
8.9 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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"regex.js"
|
|
],
|
|
"sha1": "8e70c5571d07dc7e882e979cd7432bc275ddb4d2",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "4c83ca78814534d5a2bc1b79686682eb348ce742"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '/one/g' regex",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"regex.js"
|
|
],
|
|
"sha1": "4c83ca78814534d5a2bc1b79686682eb348ce742",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "7fa1b99e3e5b9c27a8d17d12149674474c053109"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"regex.js"
|
|
],
|
|
"sha1": "7fa1b99e3e5b9c27a8d17d12149674474c053109",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a4e9e5c8515b7454ffddd1033ed36517bbeddeb9"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"regex.js"
|
|
],
|
|
"sha1": "a4e9e5c8515b7454ffddd1033ed36517bbeddeb9",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a2874c1175ad7bf7afe04fae6708c46648ec94c9"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '/one/g' regex",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '/on[^/]afe/gim' regex",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"regex.js"
|
|
],
|
|
"sha1": "a2874c1175ad7bf7afe04fae6708c46648ec94c9",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "5360c30a93987c13ebaa73a3836e2574d7f62911"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-regex-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"regex.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '/one/g' regex",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"regex.js"
|
|
],
|
|
"sha1": "5360c30a93987c13ebaa73a3836e2574d7f62911",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "1ae109a0e48e288712ef93815129152e6bcf1098"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"regex.js"
|
|
],
|
|
"sha1": "1ae109a0e48e288712ef93815129152e6bcf1098",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "4c21f4aa629b89eee95c9af81f90075ffda6d99f"
|
|
}]
|