mirror of
https://github.com/github/semantic.git
synced 2024-12-26 00:12:29 +03:00
431 lines
14 KiB
JSON
431 lines
14 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-hash-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"hash.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
71
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '{ :key1: …, :key2: …, \"key3\": …, :\"symbol_key\": … }' object"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"hash.rb"
|
|
],
|
|
"sha1": "39370fd2c53fb0727cb53346182cded1a85ec9d6",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "ce642fb7f9c5fb2cb23df95680be0579fb6f399e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-hash-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"hash.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
47
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '{ key1: …, key2: …, key3: … }' object"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
71
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '{ :key1: …, :key2: …, \"key3\": …, :\"symbol_key\": … }' object"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"hash.rb"
|
|
],
|
|
"sha1": "ce642fb7f9c5fb2cb23df95680be0579fb6f399e",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "20af4673ecbfd8a9a0515cadb3453bc2590d300d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-hash-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"hash.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
3
|
|
],
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the ':key1: …' pair"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
21
|
|
],
|
|
"end": [
|
|
1,
|
|
31
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the ':key2: …' pair"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
3
|
|
],
|
|
"end": [
|
|
1,
|
|
24
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
33
|
|
],
|
|
"end": [
|
|
1,
|
|
48
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'key1: …' pair with the '\"key3\": …' pair"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
26
|
|
],
|
|
"end": [
|
|
1,
|
|
33
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
50
|
|
],
|
|
"end": [
|
|
1,
|
|
69
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'key2: …' pair with the ':\"symbol_key\": …' pair"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
35
|
|
],
|
|
"end": [
|
|
1,
|
|
45
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'key3: …' pair"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"hash.rb"
|
|
],
|
|
"sha1": "20af4673ecbfd8a9a0515cadb3453bc2590d300d",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "431a6513493e27590f960a7bc1bff2fd6badf299"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-hash-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"hash.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
3
|
|
],
|
|
"end": [
|
|
1,
|
|
24
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'key1: …' pair"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
3
|
|
],
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
26
|
|
],
|
|
"end": [
|
|
1,
|
|
33
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the ':key1: …' pair with the 'key2: …' pair"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
21
|
|
],
|
|
"end": [
|
|
1,
|
|
31
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
35
|
|
],
|
|
"end": [
|
|
1,
|
|
45
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the ':key2: …' pair with the 'key3: …' pair"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
33
|
|
],
|
|
"end": [
|
|
1,
|
|
48
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"key3\": …' pair"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
50
|
|
],
|
|
"end": [
|
|
1,
|
|
69
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the ':\"symbol_key\": …' pair"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"hash.rb"
|
|
],
|
|
"sha1": "431a6513493e27590f960a7bc1bff2fd6badf299",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "1e399101cfc826e467094a8e6404b5ec7ca2caf2"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-hash-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"hash.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
47
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '{ key1: …, key2: …, key3: … }' object"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
71
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '{ :key1: …, :key2: …, \"key3\": …, :\"symbol_key\": … }' object"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
47
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '{ key1: …, key2: …, key3: … }' object"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"hash.rb"
|
|
],
|
|
"sha1": "1e399101cfc826e467094a8e6404b5ec7ca2caf2",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "28439fdfea7c94f8a00655c23c60958de6602612"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-hash-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"hash.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
71
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '{ :key1: …, :key2: …, \"key3\": …, :\"symbol_key\": … }' object"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"hash.rb"
|
|
],
|
|
"sha1": "28439fdfea7c94f8a00655c23c60958de6602612",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "f492c0d71d5c5f19da814d5ae7c9a99b85f11186"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-hash-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"hash.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
47
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '{ key1: …, key2: …, key3: … }' object"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"hash.rb"
|
|
],
|
|
"sha1": "f492c0d71d5c5f19da814d5ae7c9a99b85f11186",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "b4573751c3327f057c7462a2a3316d096162a3a1"
|
|
}]
|