1
1
mirror of https://github.com/github/semantic.git synced 2025-01-09 00:56:32 +03:00
semantic/test/corpus/diff-summaries/javascript/true.json
Rob Rix 483e8a3f00 Regenerate all the things!
JavaScript: method call → function call.

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

354 lines
9.9 KiB
JSON

[{
"testCaseDescription": "javascript-true-insert-test",
"expectedResult": {
"changes": {
"true.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
5
]
}
},
"summary": "Added 'true'"
}
]
},
"errors": {}
},
"filePaths": [
"true.js"
],
"patch": [
"diff --git a/true.js b/true.js",
"index e69de29b..4203d4b4 100644",
"--- a/true.js",
"+++ b/true.js",
"@@ -0,0 +1 @@",
"+true;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "a392bcd691680203eae2c96e73b145e2140a6097..206061601a6b3f269fd703d097e2d5f1b8baaecc"
}
,{
"testCaseDescription": "javascript-true-replacement-insert-test",
"expectedResult": {
"changes": {
"true.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'true' return statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
5
]
}
},
"summary": "Added 'true'"
}
]
},
"errors": {}
},
"filePaths": [
"true.js"
],
"patch": [
"diff --git a/true.js b/true.js",
"index 4203d4b4..65b6323f 100644",
"--- a/true.js",
"+++ b/true.js",
"@@ -1 +1,3 @@",
"+return true;",
"+true;",
" true;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "206061601a6b3f269fd703d097e2d5f1b8baaecc..edde8c160a81303c26e3ea28a3eb50773592c49b"
}
,{
"testCaseDescription": "javascript-true-delete-insert-test",
"expectedResult": {
"changes": {
"true.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
5
]
}
},
"summary": "Added 'true'"
},
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'true' return statement"
}
]
},
"errors": {}
},
"filePaths": [
"true.js"
],
"patch": [
"diff --git a/true.js b/true.js",
"index 65b6323f..91e1cfc7 100644",
"--- a/true.js",
"+++ b/true.js",
"@@ -1,3 +1,3 @@",
"-return true;",
"+true;",
" true;",
" true;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "edde8c160a81303c26e3ea28a3eb50773592c49b..9335dec627559608ccca695be2c4cffb46c6cd69"
}
,{
"testCaseDescription": "javascript-true-replacement-test",
"expectedResult": {
"changes": {
"true.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'true' return statement"
},
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
5
]
}
},
"summary": "Deleted 'true'"
}
]
},
"errors": {}
},
"filePaths": [
"true.js"
],
"patch": [
"diff --git a/true.js b/true.js",
"index 91e1cfc7..65b6323f 100644",
"--- a/true.js",
"+++ b/true.js",
"@@ -1,3 +1,3 @@",
"-true;",
"+return true;",
" true;",
" true;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "9335dec627559608ccca695be2c4cffb46c6cd69..2063519ea7d98f18154478774046117b4d6eb125"
}
,{
"testCaseDescription": "javascript-true-delete-replacement-test",
"expectedResult": {
"changes": {
"true.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'true' return statement"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
5
]
}
},
"summary": "Deleted 'true'"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
13
]
}
},
"summary": "Added the 'true' return statement"
}
]
},
"errors": {}
},
"filePaths": [
"true.js"
],
"patch": [
"diff --git a/true.js b/true.js",
"index 65b6323f..48a44d12 100644",
"--- a/true.js",
"+++ b/true.js",
"@@ -1,3 +1,2 @@",
"-return true;",
"-true;",
" true;",
"+return true;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "2063519ea7d98f18154478774046117b4d6eb125..304c73f27e3a9f945bdbeecf6be10e042990af21"
}
,{
"testCaseDescription": "javascript-true-delete-test",
"expectedResult": {
"changes": {
"true.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
5
]
}
},
"summary": "Deleted 'true'"
}
]
},
"errors": {}
},
"filePaths": [
"true.js"
],
"patch": [
"diff --git a/true.js b/true.js",
"index 48a44d12..c1c6922d 100644",
"--- a/true.js",
"+++ b/true.js",
"@@ -1,2 +1 @@",
"-true;",
" return true;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "304c73f27e3a9f945bdbeecf6be10e042990af21..465c4b4873ceea8d4e7b205428cf5a5d252b0428"
}
,{
"testCaseDescription": "javascript-true-delete-rest-test",
"expectedResult": {
"changes": {
"true.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'true' return statement"
}
]
},
"errors": {}
},
"filePaths": [
"true.js"
],
"patch": [
"diff --git a/true.js b/true.js",
"index c1c6922d..e69de29b 100644",
"--- a/true.js",
"+++ b/true.js",
"@@ -1 +0,0 @@",
"-return true;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "465c4b4873ceea8d4e7b205428cf5a5d252b0428..d7a5c35ea0a826299a22c96d0b992f92bc85bb91"
}]