mirror of
https://github.com/github/semantic.git
synced 2024-12-21 22:01:46 +03:00
309 lines
9.8 KiB
JSON
309 lines
9.8 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-string-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "string.js",
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'A string with \"double\" quotes' string",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"string.js"
|
|
],
|
|
"sha1": "802ec5ac85b69eebd846079cc2cd500021a32d84",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "548cff33fc83a827c59de7198e8c91370e15a032"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-string-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "string.js",
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'A different string with \"double\" quotes' string",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "string.js",
|
|
"end": [
|
|
2,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'A string with \"double\" quotes' string",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"string.js"
|
|
],
|
|
"sha1": "548cff33fc83a827c59de7198e8c91370e15a032",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "1374b4e8911a8aadedf8dd5e08ed34abeb631062"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-string-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"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"
|
|
],
|
|
"sha1": "1374b4e8911a8aadedf8dd5e08ed34abeb631062",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "6d07e2009288c2a768cd297475105b5b41da7090"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-string-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"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"
|
|
],
|
|
"sha1": "6d07e2009288c2a768cd297475105b5b41da7090",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b87c05c3b0d2f211e6f9672c8d7d27b6c7572b58"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-string-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "string.js",
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'A different string with \"double\" quotes' string",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "string.js",
|
|
"end": [
|
|
2,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'A string with \"double\" quotes' string",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"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"
|
|
],
|
|
"sha1": "b87c05c3b0d2f211e6f9672c8d7d27b6c7572b58",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "afbfb5f5d581d7a3a75d92c1ce2d8d4271889982"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-string-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "string.js",
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'A string with \"double\" quotes' string",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"string.js"
|
|
],
|
|
"sha1": "afbfb5f5d581d7a3a75d92c1ce2d8d4271889982",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c78c48f8200e0c64c908a50aa9f96c73e69f27d8"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-string-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"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"
|
|
],
|
|
"sha1": "c78c48f8200e0c64c908a50aa9f96c73e69f27d8",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c0f927bdea55b3ee78ee68522ae964808f19fab6"
|
|
}]
|