1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00
semantic/test/corpus/diff-summaries/javascript/regex.json
2016-10-11 12:52:26 -04:00

309 lines
9.5 KiB
JSON

[{
"testCaseDescription": "javascript-regex-insert-test",
"expectedResult": {
"changes": {
"regex.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "regex.js",
"end": [
1,
7
]
}
},
"summary": "Added the '/one/g' regex",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"regex.js"
],
"sha1": "f5b91915cdfaa0a8c913ae799e721f71f579a5fa",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f5f23a9f1bd83ec19a51dfd4b86a8cd684a60abc"
}
,{
"testCaseDescription": "javascript-regex-replacement-insert-test",
"expectedResult": {
"changes": {
"regex.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "regex.js",
"end": [
1,
15
]
}
},
"summary": "Added the '/on[^/]afe/gim' regex",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "regex.js",
"end": [
2,
7
]
}
},
"summary": "Added the '/one/g' regex",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"regex.js"
],
"sha1": "f5f23a9f1bd83ec19a51dfd4b86a8cd684a60abc",
"gitDir": "test/corpus/repos/javascript",
"sha2": "dcd7255476e861d37c3affa4615d3755f0e4fc70"
}
,{
"testCaseDescription": "javascript-regex-delete-insert-test",
"expectedResult": {
"changes": {
"regex.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"filepath": "regex.js",
"end": [
1,
15
]
},
{
"start": [
1,
1
],
"filepath": "regex.js",
"end": [
1,
7
]
}
]
},
"summary": "Replaced the '/on[^/]afe/gim' regex with the '/one/g' regex",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"regex.js"
],
"sha1": "dcd7255476e861d37c3affa4615d3755f0e4fc70",
"gitDir": "test/corpus/repos/javascript",
"sha2": "047d2bb2c6a6e3e8dec2f409d8d09db9a57c98a3"
}
,{
"testCaseDescription": "javascript-regex-replacement-test",
"expectedResult": {
"changes": {
"regex.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"filepath": "regex.js",
"end": [
1,
7
]
},
{
"start": [
1,
1
],
"filepath": "regex.js",
"end": [
1,
15
]
}
]
},
"summary": "Replaced the '/one/g' regex with the '/on[^/]afe/gim' regex",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"regex.js"
],
"sha1": "047d2bb2c6a6e3e8dec2f409d8d09db9a57c98a3",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f34c20c636bf30bf41907697ab12cbc6f6bc4da6"
}
,{
"testCaseDescription": "javascript-regex-delete-replacement-test",
"expectedResult": {
"changes": {
"regex.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "regex.js",
"end": [
1,
15
]
}
},
"summary": "Deleted the '/on[^/]afe/gim' regex",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"filepath": "regex.js",
"end": [
2,
7
]
}
},
"summary": "Deleted the '/one/g' regex",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "regex.js",
"end": [
2,
15
]
}
},
"summary": "Added the '/on[^/]afe/gim' regex",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"regex.js"
],
"sha1": "f34c20c636bf30bf41907697ab12cbc6f6bc4da6",
"gitDir": "test/corpus/repos/javascript",
"sha2": "78af2a30b3658ea4285dd231eb350f6d22a5f894"
}
,{
"testCaseDescription": "javascript-regex-delete-test",
"expectedResult": {
"changes": {
"regex.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "regex.js",
"end": [
1,
7
]
}
},
"summary": "Deleted the '/one/g' regex",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"regex.js"
],
"sha1": "78af2a30b3658ea4285dd231eb350f6d22a5f894",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d2697be3fc6cd1f0439a66a84ae8791ac7b24081"
}
,{
"testCaseDescription": "javascript-regex-delete-rest-test",
"expectedResult": {
"changes": {
"regex.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "regex.js",
"end": [
1,
15
]
}
},
"summary": "Deleted the '/on[^/]afe/gim' regex",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"regex.js"
],
"sha1": "d2697be3fc6cd1f0439a66a84ae8791ac7b24081",
"gitDir": "test/corpus/repos/javascript",
"sha2": "18c86bb6fad549661412ad8c3e67e3e4a4fb7e2b"
}]