1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/javascript/true.json
2016-11-03 16:02:56 -07: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 e69de29..4203d4b 100644",
"--- a/true.js",
"+++ b/true.js",
"@@ -0,0 +1 @@",
"+true;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "bc804312603351b07d0e242d9b3675d646934512..b8a5a66ee0d580e0f5be577ba65a6afe82b8acfe"
}
,{
"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 4203d4b..65b6323 100644",
"--- a/true.js",
"+++ b/true.js",
"@@ -1 +1,3 @@",
"+return true;",
"+true;",
" true;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "b8a5a66ee0d580e0f5be577ba65a6afe82b8acfe..38f0052081cce419eb03bcd07164a3f756a4d014"
}
,{
"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 65b6323..91e1cfc 100644",
"--- a/true.js",
"+++ b/true.js",
"@@ -1,3 +1,3 @@",
"-return true;",
"+true;",
" true;",
" true;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "38f0052081cce419eb03bcd07164a3f756a4d014..514cc9bcf90d8b96eb0f5109b0c84d8136f5e82a"
}
,{
"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 91e1cfc..65b6323 100644",
"--- a/true.js",
"+++ b/true.js",
"@@ -1,3 +1,3 @@",
"-true;",
"+return true;",
" true;",
" true;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "514cc9bcf90d8b96eb0f5109b0c84d8136f5e82a..883bffa8136e0f6cc1fc850f8aab8f69ac48699b"
}
,{
"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 65b6323..48a44d1 100644",
"--- a/true.js",
"+++ b/true.js",
"@@ -1,3 +1,2 @@",
"-return true;",
"-true;",
" true;",
"+return true;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "883bffa8136e0f6cc1fc850f8aab8f69ac48699b..36585335908145fbf9f18eabecb60038b29552f0"
}
,{
"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 48a44d1..c1c6922 100644",
"--- a/true.js",
"+++ b/true.js",
"@@ -1,2 +1 @@",
"-true;",
" return true;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "36585335908145fbf9f18eabecb60038b29552f0..9d5dc3e57ffd189e1482d577bfc73e78e900d42a"
}
,{
"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 c1c6922..e69de29 100644",
"--- a/true.js",
"+++ b/true.js",
"@@ -1 +0,0 @@",
"-return true;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "9d5dc3e57ffd189e1482d577bfc73e78e900d42a..a56c14e19dec2910d36460e4fca6496da46f6240"
}]