mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
287 lines
8.6 KiB
JSON
287 lines
8.6 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-rescue-modifier-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rescue-modifier.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'rescue nil' modifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rescue-modifier.rb"
|
|
],
|
|
"sha1": "d6b69ee323e0c9ee00230a75c2b4a2934e9c3e71",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "86cf889822379937fffe83d8537ff415c314a0d1"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-rescue-modifier-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rescue-modifier.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
17
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'rescue false' modifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'rescue nil' modifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rescue-modifier.rb"
|
|
],
|
|
"sha1": "86cf889822379937fffe83d8537ff415c314a0d1",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "ac60acbf164ad2335912171636f141e932248957"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-rescue-modifier-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rescue-modifier.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
17
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
15
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'rescue false' modifier with the 'rescue nil' modifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rescue-modifier.rb"
|
|
],
|
|
"sha1": "ac60acbf164ad2335912171636f141e932248957",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "1ea4161a99d94e7dd39cd030c2d4c8fd6dc0e94c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-rescue-modifier-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rescue-modifier.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
17
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'rescue nil' modifier with the 'rescue false' modifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rescue-modifier.rb"
|
|
],
|
|
"sha1": "1ea4161a99d94e7dd39cd030c2d4c8fd6dc0e94c",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "9fdd88b39878263fc304a2818537124855e4c82a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-rescue-modifier-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rescue-modifier.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
17
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'rescue false' modifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'rescue nil' modifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
17
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'rescue false' modifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rescue-modifier.rb"
|
|
],
|
|
"sha1": "9fdd88b39878263fc304a2818537124855e4c82a",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "727e9f5a026e689785b8698ed2d9eb91c6b530fe"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-rescue-modifier-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rescue-modifier.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'rescue nil' modifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rescue-modifier.rb"
|
|
],
|
|
"sha1": "727e9f5a026e689785b8698ed2d9eb91c6b530fe",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "43198ab92ad0998b401df38857e3f323345ffec5"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-rescue-modifier-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rescue-modifier.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
17
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'rescue false' modifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rescue-modifier.rb"
|
|
],
|
|
"sha1": "43198ab92ad0998b401df38857e3f323345ffec5",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "9024e8837a50b178d390b667ba25e54e3c04e1ac"
|
|
}]
|