1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 06:11:49 +03:00
semantic/test/corpus/diff-summaries/javascript/string.json

309 lines
9.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
],
"name": "string.js",
"end": [
1,
32
]
}
},
"summary": "Added the 'A string with \"double\" quotes' string",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"string.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "802ec5ac85b69eebd846079cc2cd500021a32d84",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "548cff33fc83a827c59de7198e8c91370e15a032"
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
],
"name": "string.js",
"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
],
"name": "string.js",
"end": [
2,
32
]
}
},
"summary": "Added the 'A string with \"double\" quotes' string",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"string.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "548cff33fc83a827c59de7198e8c91370e15a032",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "1374b4e8911a8aadedf8dd5e08ed34abeb631062"
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
],
"name": "string.js",
"end": [
1,
42
]
},
{
"start": [
1,
1
],
"name": "string.js",
"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 19:00:34 +03:00
"sha1": "1374b4e8911a8aadedf8dd5e08ed34abeb631062",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "6d07e2009288c2a768cd297475105b5b41da7090"
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
],
"name": "string.js",
"end": [
1,
32
]
},
{
"start": [
1,
1
],
"name": "string.js",
"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 19:00:34 +03:00
"sha1": "6d07e2009288c2a768cd297475105b5b41da7090",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "b87c05c3b0d2f211e6f9672c8d7d27b6c7572b58"
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
],
"name": "string.js",
"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
],
"name": "string.js",
"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
],
"name": "string.js",
"end": [
2,
42
]
}
},
"summary": "Added the 'A different string with \"double\" quotes' string",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"string.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "b87c05c3b0d2f211e6f9672c8d7d27b6c7572b58",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "afbfb5f5d581d7a3a75d92c1ce2d8d4271889982"
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
],
"name": "string.js",
"end": [
1,
32
]
}
},
"summary": "Deleted the 'A string with \"double\" quotes' string",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"string.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "afbfb5f5d581d7a3a75d92c1ce2d8d4271889982",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "c78c48f8200e0c64c908a50aa9f96c73e69f27d8"
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
],
"name": "string.js",
"end": [
1,
42
]
}
},
"summary": "Deleted the 'A different string with \"double\" quotes' string",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"string.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "c78c48f8200e0c64c908a50aa9f96c73e69f27d8",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "c0f927bdea55b3ee78ee68522ae964808f19fab6"
2016-10-11 18:12:20 +03:00
}]