1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00
semantic/test/corpus/diff-summaries/javascript/string.json

297 lines
9.2 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
]
}
},
"summary": "Added the 'A string with \"double\" quotes' string",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"string.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "b8f8704eac31cd6cb8a2d60bc6432cd69336e7ca",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "1eac803d3d86b8fa340350c56d2eb7d39d6d7342"
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
]
}
},
"summary": "Added the 'A different string with \"double\" quotes' string",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
32
]
}
},
"summary": "Added the 'A string with \"double\" quotes' string",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"string.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "1eac803d3d86b8fa340350c56d2eb7d39d6d7342",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "350a048f1d418381f48bdf81e353496de8248e0d"
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
]
}
]
},
"summary": "Replaced the 'A different string with \"double\" quotes' string with the 'A string with \"double\" quotes' string",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"string.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "350a048f1d418381f48bdf81e353496de8248e0d",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "74081edf9644d5f3e98ccf41140ebda1f2b82bc6"
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
]
}
]
},
"summary": "Replaced the 'A string with \"double\" quotes' string with the 'A different string with \"double\" quotes' string",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"string.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "74081edf9644d5f3e98ccf41140ebda1f2b82bc6",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "67dce6ee4390c8826050dbb0dcd1afb9e0c5ff38"
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
]
}
},
"summary": "Deleted the 'A different string with \"double\" quotes' string",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
32
]
}
},
"summary": "Deleted the 'A string with \"double\" quotes' string",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
42
]
}
},
"summary": "Added the 'A different string with \"double\" quotes' string",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"string.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "67dce6ee4390c8826050dbb0dcd1afb9e0c5ff38",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "965488ad061223b589ff8388f3da6e539b60709a"
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
]
}
},
"summary": "Deleted the 'A string with \"double\" quotes' string",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"string.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "965488ad061223b589ff8388f3da6e539b60709a",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "a53c564049237a36c0a19ae56698cb5587edcef9"
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
]
}
},
"summary": "Deleted the 'A different string with \"double\" quotes' string",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"string.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "a53c564049237a36c0a19ae56698cb5587edcef9",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "ba4af0c2eb2e6c815e957def7e452a8f06765f94"
2016-10-11 18:12:20 +03:00
}]