mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
347 lines
11 KiB
JSON
347 lines
11 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-method-declaration-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-declaration.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo()' method"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-declaration.rb"
|
|
],
|
|
"sha1": "a7db41da2ebcffeeb1a4b238af369ec33aa7f2ba",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "7a5e353d691ec72bc829af6eb407417c392d88fa"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-method-declaration-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-declaration.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'bar(a)' method"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo()' method"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-declaration.rb"
|
|
],
|
|
"sha1": "7a5e353d691ec72bc829af6eb407417c392d88fa",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "eff04fde3bc068fe823aaa4bf127b013a994666a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-method-declaration-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-declaration.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'bar' identifier with the 'foo' identifier in the foo() method"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' identifier in the foo() method"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
3
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'baz' identifier in the foo() method"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-declaration.rb"
|
|
],
|
|
"sha1": "eff04fde3bc068fe823aaa4bf127b013a994666a",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "7a53968c73c274cc1611dd871e8b270a7897588c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-method-declaration-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-declaration.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'foo' identifier with the 'bar' identifier in the bar(a) method"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a' identifier in the bar(a) method"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
3
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'baz' identifier in the bar(a) method"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-declaration.rb"
|
|
],
|
|
"sha1": "7a53968c73c274cc1611dd871e8b270a7897588c",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "ab39a5ab297037073662c44b2217383a8b8eb04f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-method-declaration-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-declaration.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'bar(a)' method"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo()' method"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'bar(a)' method"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-declaration.rb"
|
|
],
|
|
"sha1": "ab39a5ab297037073662c44b2217383a8b8eb04f",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "da26bfb5f97a97761c6c9c527d6e7ca7233b93d9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-method-declaration-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-declaration.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo()' method"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-declaration.rb"
|
|
],
|
|
"sha1": "da26bfb5f97a97761c6c9c527d6e7ca7233b93d9",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "7090baeedd9343e356ba412c0fe0bcb583d11406"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-method-declaration-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-declaration.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'bar(a)' method"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-declaration.rb"
|
|
],
|
|
"sha1": "7090baeedd9343e356ba412c0fe0bcb583d11406",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "766401b52ec407563772d729264ef9f2ba4844eb"
|
|
}]
|