1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/ruby/method-declaration-params.json
2016-11-03 14:27:47 -07:00

217 lines
6.5 KiB
JSON

[{
"testCaseDescription": "ruby-method-declaration-params-setup-test",
"expectedResult": {
"changes": {
"method-declaration-params.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
2,
4
]
}
},
"summary": "Added the 'foo()' method"
}
]
},
"errors": {}
},
"filePaths": [
"method-declaration-params.rb"
],
"sha1": "766401b52ec407563772d729264ef9f2ba4844eb",
"gitDir": "test/corpus/repos/ruby",
"sha2": "304b79bbc3d5a8b3f7b7c6715088b606de26067f"
}
,{
"testCaseDescription": "ruby-method-declaration-params-insert-test",
"expectedResult": {
"changes": {
"method-declaration-params.rb": [
{
"span": {
"insert": {
"start": [
1,
9
],
"end": [
1,
10
]
}
},
"summary": "Added the 'a' identifier in the foo(a) method"
}
]
},
"errors": {}
},
"filePaths": [
"method-declaration-params.rb"
],
"sha1": "304b79bbc3d5a8b3f7b7c6715088b606de26067f",
"gitDir": "test/corpus/repos/ruby",
"sha2": "49751a5d957c9c8ea80288d2b61f3c51c02bfcc4"
}
,{
"testCaseDescription": "ruby-method-declaration-params-replacement-test",
"expectedResult": {
"changes": {
"method-declaration-params.rb": [
{
"span": {
"insert": {
"start": [
1,
12
],
"end": [
1,
13
]
}
},
"summary": "Added the 'b' identifier in the foo(a, b, c) method"
},
{
"span": {
"insert": {
"start": [
1,
15
],
"end": [
1,
16
]
}
},
"summary": "Added the 'c' identifier in the foo(a, b, c) method"
}
]
},
"errors": {}
},
"filePaths": [
"method-declaration-params.rb"
],
"sha1": "49751a5d957c9c8ea80288d2b61f3c51c02bfcc4",
"gitDir": "test/corpus/repos/ruby",
"sha2": "fa12a30f536169727e0f9745d184ce7bf39d45c6"
}
,{
"testCaseDescription": "ruby-method-declaration-params-delete-replacement-test",
"expectedResult": {
"changes": {
"method-declaration-params.rb": [
{
"span": {
"delete": {
"start": [
1,
12
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'b' identifier in the foo(a) method"
},
{
"span": {
"delete": {
"start": [
1,
15
],
"end": [
1,
16
]
}
},
"summary": "Deleted the 'c' identifier in the foo(a) method"
}
]
},
"errors": {}
},
"filePaths": [
"method-declaration-params.rb"
],
"sha1": "fa12a30f536169727e0f9745d184ce7bf39d45c6",
"gitDir": "test/corpus/repos/ruby",
"sha2": "deee291907e301199dbdfdeee0549de0158f446c"
}
,{
"testCaseDescription": "ruby-method-declaration-params-delete-insert-test",
"expectedResult": {
"changes": {
"method-declaration-params.rb": [
{
"span": {
"delete": {
"start": [
1,
9
],
"end": [
1,
10
]
}
},
"summary": "Deleted the 'a' identifier in the foo() method"
}
]
},
"errors": {}
},
"filePaths": [
"method-declaration-params.rb"
],
"sha1": "deee291907e301199dbdfdeee0549de0158f446c",
"gitDir": "test/corpus/repos/ruby",
"sha2": "836bd0055be09693b470ab37e66cbc6506d5282b"
}
,{
"testCaseDescription": "ruby-method-declaration-params-teardown-test",
"expectedResult": {
"changes": {
"method-declaration-params.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
2,
4
]
}
},
"summary": "Deleted the 'foo()' method"
}
]
},
"errors": {}
},
"filePaths": [
"method-declaration-params.rb"
],
"sha1": "836bd0055be09693b470ab37e66cbc6506d5282b",
"gitDir": "test/corpus/repos/ruby",
"sha2": "e5721328087e5be744c5b668e305fc99890b37e9"
}]