1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00
semantic/test/corpus/diff-summaries/javascript/regex.json
Rob Rix 483e8a3f00 Regenerate all the things!
JavaScript: method call → function call.

Go: regenerated everything.
2017-01-24 15:09:28 -05:00

348 lines
10 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"
],
"patch": [
"diff --git a/regex.js b/regex.js",
"index e69de29b..b3818424 100644",
"--- a/regex.js",
"+++ b/regex.js",
"@@ -0,0 +1 @@",
"+/one/g;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "821df9c41798fbc70ad5ca5a5795c00b2cedb79c..2db757877a7c19866710b3aee81a03666c41b5c4"
}
,{
"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"
],
"patch": [
"diff --git a/regex.js b/regex.js",
"index b3818424..6ed4b424 100644",
"--- a/regex.js",
"+++ b/regex.js",
"@@ -1 +1,3 @@",
"+/on[^/]afe/gim;",
"+/one/g;",
" /one/g;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "2db757877a7c19866710b3aee81a03666c41b5c4..c30aee5ff6ef112d49a7192d70292859a7b7031c"
}
,{
"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"
],
"patch": [
"diff --git a/regex.js b/regex.js",
"index 6ed4b424..abb87ec8 100644",
"--- a/regex.js",
"+++ b/regex.js",
"@@ -1,3 +1,3 @@",
"-/on[^/]afe/gim;",
"+/one/g;",
" /one/g;",
" /one/g;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "c30aee5ff6ef112d49a7192d70292859a7b7031c..5f611ea9f0400d0a16e8f26ed6bb0e77b9f182d4"
}
,{
"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"
],
"patch": [
"diff --git a/regex.js b/regex.js",
"index abb87ec8..6ed4b424 100644",
"--- a/regex.js",
"+++ b/regex.js",
"@@ -1,3 +1,3 @@",
"-/one/g;",
"+/on[^/]afe/gim;",
" /one/g;",
" /one/g;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "5f611ea9f0400d0a16e8f26ed6bb0e77b9f182d4..522e77adc0cf490332af21396f7b8fc1dadc1e0e"
}
,{
"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"
],
"patch": [
"diff --git a/regex.js b/regex.js",
"index 6ed4b424..9f57e919 100644",
"--- a/regex.js",
"+++ b/regex.js",
"@@ -1,3 +1,2 @@",
"-/on[^/]afe/gim;",
"-/one/g;",
" /one/g;",
"+/on[^/]afe/gim;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "522e77adc0cf490332af21396f7b8fc1dadc1e0e..3756349ee3c2a57533b0586b3efe8330bd649e1a"
}
,{
"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"
],
"patch": [
"diff --git a/regex.js b/regex.js",
"index 9f57e919..9b04194d 100644",
"--- a/regex.js",
"+++ b/regex.js",
"@@ -1,2 +1 @@",
"-/one/g;",
" /on[^/]afe/gim;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "3756349ee3c2a57533b0586b3efe8330bd649e1a..82af6ebb2352e85a6f3d0f5386f6685c24472554"
}
,{
"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"
],
"patch": [
"diff --git a/regex.js b/regex.js",
"index 9b04194d..e69de29b 100644",
"--- a/regex.js",
"+++ b/regex.js",
"@@ -1 +0,0 @@",
"-/on[^/]afe/gim;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "82af6ebb2352e85a6f3d0f5386f6685c24472554..2440322c22f20e4b94216aa19cb2249a68864183"
}]