mirror of
https://github.com/github/semantic.git
synced 2024-12-21 13:51:44 +03:00
429 lines
14 KiB
JSON
429 lines
14 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-class-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"class.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "class.js",
|
|
"end": [
|
|
1,
|
|
87
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'Foo' class",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"class.js"
|
|
],
|
|
"sha1": "83627007e919d5e812d83d6d96953a00e81369c0",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d767c58b76e3cbfe7f864b591ca6c84e8f6e2927"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-class-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"class.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "class.js",
|
|
"end": [
|
|
1,
|
|
85
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'Foo' class",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "class.js",
|
|
"end": [
|
|
2,
|
|
87
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'Foo' class",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"class.js"
|
|
],
|
|
"sha1": "d767c58b76e3cbfe7f864b591ca6c84e8f6e2927",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a651a0b93739f2b5e8386dfd512b74ddffe3a18a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-class-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"class.js": [
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
20
|
|
],
|
|
"name": "class.js",
|
|
"end": [
|
|
1,
|
|
23
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
20
|
|
],
|
|
"name": "class.js",
|
|
"end": [
|
|
1,
|
|
23
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'foo' identifier with the 'one' identifier in the one method of the 'Foo' class",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
42
|
|
],
|
|
"name": "class.js",
|
|
"end": [
|
|
1,
|
|
45
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
42
|
|
],
|
|
"name": "class.js",
|
|
"end": [
|
|
1,
|
|
45
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'bar' identifier with the 'two' identifier in the two method of the 'Foo' class",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
63
|
|
],
|
|
"name": "class.js",
|
|
"end": [
|
|
1,
|
|
66
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
63
|
|
],
|
|
"name": "class.js",
|
|
"end": [
|
|
1,
|
|
68
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'baz' identifier with the 'three' identifier in the three method of the 'Foo' class",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"class.js"
|
|
],
|
|
"sha1": "a651a0b93739f2b5e8386dfd512b74ddffe3a18a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "041316ee304f230e5fa4ef596e509cb0fd40eb1f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-class-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"class.js": [
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
20
|
|
],
|
|
"name": "class.js",
|
|
"end": [
|
|
1,
|
|
23
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
20
|
|
],
|
|
"name": "class.js",
|
|
"end": [
|
|
1,
|
|
23
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'one' identifier with the 'foo' identifier in the foo method of the 'Foo' class",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
42
|
|
],
|
|
"name": "class.js",
|
|
"end": [
|
|
1,
|
|
45
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
42
|
|
],
|
|
"name": "class.js",
|
|
"end": [
|
|
1,
|
|
45
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'two' identifier with the 'bar' identifier in the bar method of the 'Foo' class",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
63
|
|
],
|
|
"name": "class.js",
|
|
"end": [
|
|
1,
|
|
68
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
63
|
|
],
|
|
"name": "class.js",
|
|
"end": [
|
|
1,
|
|
66
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'three' identifier with the 'baz' identifier in the baz method of the 'Foo' class",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"class.js"
|
|
],
|
|
"sha1": "041316ee304f230e5fa4ef596e509cb0fd40eb1f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "72ad8365d1dd791d49623878ff63f6efc63ee3e5"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-class-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"class.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "class.js",
|
|
"end": [
|
|
1,
|
|
85
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'Foo' class",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "class.js",
|
|
"end": [
|
|
2,
|
|
87
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'Foo' class",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "class.js",
|
|
"end": [
|
|
2,
|
|
85
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'Foo' class",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"class.js"
|
|
],
|
|
"sha1": "72ad8365d1dd791d49623878ff63f6efc63ee3e5",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "fa5b9e801beb4242d38b1fcbf3180997d5cd141c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-class-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"class.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "class.js",
|
|
"end": [
|
|
1,
|
|
87
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'Foo' class",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"class.js"
|
|
],
|
|
"sha1": "fa5b9e801beb4242d38b1fcbf3180997d5cd141c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "4d718b604febd5b0e89d62f2c32401aea6db9e94"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-class-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"class.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "class.js",
|
|
"end": [
|
|
1,
|
|
85
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'Foo' class",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"class.js"
|
|
],
|
|
"sha1": "4d718b604febd5b0e89d62f2c32401aea6db9e94",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "407eb0654feb336967cfa7e099e277590d97ea6d"
|
|
}]
|