1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 16:02:43 +03:00
semantic/test/corpus/diff-summaries/javascript/string.json

287 lines
8.8 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-string-insert-test",
"expectedResult": {
"changes": {
"string.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
32
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'A string with \"double\" quotes' string"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"string.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "ee6b3d5d274912c071eadd10cb5bea9b96b30cb8",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "46e49e15b25e27b6aeebdc7948666e0f8533b68d"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-string-replacement-insert-test",
"expectedResult": {
"changes": {
"string.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
42
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'A different string with \"double\" quotes' string"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
32
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'A string with \"double\" quotes' string"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"string.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "46e49e15b25e27b6aeebdc7948666e0f8533b68d",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "085670c25a2ad28cfb1320d941784517513062b6"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-string-delete-insert-test",
"expectedResult": {
"changes": {
"string.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
1
],
"end": [
1,
42
]
},
{
"start": [
1,
1
],
"end": [
1,
32
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'A different string with \"double\" quotes' string with the 'A string with \"double\" quotes' string"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"string.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "085670c25a2ad28cfb1320d941784517513062b6",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "86d28d133e9e7812e18d87b3660360c044e6c21f"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-string-replacement-test",
"expectedResult": {
"changes": {
"string.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
1
],
"end": [
1,
32
]
},
{
"start": [
1,
1
],
"end": [
1,
42
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'A string with \"double\" quotes' string with the 'A different string with \"double\" quotes' string"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"string.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "86d28d133e9e7812e18d87b3660360c044e6c21f",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "5dd032df5f467350f02886351995347032be9029"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-string-delete-replacement-test",
"expectedResult": {
"changes": {
"string.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
42
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'A different string with \"double\" quotes' string"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
32
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'A string with \"double\" quotes' string"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
42
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'A different string with \"double\" quotes' string"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"string.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "5dd032df5f467350f02886351995347032be9029",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "5f90ef17fb687829457231c9d8faf67867265874"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-string-delete-test",
"expectedResult": {
"changes": {
"string.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
32
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'A string with \"double\" quotes' string"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"string.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "5f90ef17fb687829457231c9d8faf67867265874",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "1085f7bd7baaf6d7417b077dd9eebb1e67b7f87a"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-string-delete-rest-test",
"expectedResult": {
"changes": {
"string.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
42
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'A different string with \"double\" quotes' string"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"string.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "1085f7bd7baaf6d7417b077dd9eebb1e67b7f87a",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "616022d16e903375ee8cb705926e3130e700baa1"
2016-10-11 18:12:20 +03:00
}]