1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/ruby/hash.json
2016-10-26 10:14:39 -07:00

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": "1ab4a0b3a358a2193b89efaea09a1f22869906a4",
"gitDir": "test/corpus/repos/ruby",
"sha2": "f0a2cd0b35ffd0c3d6b063b9e51e41a5f77b9547"
}
,{
"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": "f0a2cd0b35ffd0c3d6b063b9e51e41a5f77b9547",
"gitDir": "test/corpus/repos/ruby",
"sha2": "951f918a624477eb5729f81fc3df2e2321dfaaad"
}
,{
"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": "951f918a624477eb5729f81fc3df2e2321dfaaad",
"gitDir": "test/corpus/repos/ruby",
"sha2": "2f191fbeb3e09f41ae945480a6f132c5f7e8f276"
}
,{
"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": "2f191fbeb3e09f41ae945480a6f132c5f7e8f276",
"gitDir": "test/corpus/repos/ruby",
"sha2": "0e693235302979f1d107cfbd4e9f39ff55fb2539"
}
,{
"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": "0e693235302979f1d107cfbd4e9f39ff55fb2539",
"gitDir": "test/corpus/repos/ruby",
"sha2": "0f16bdd5111620611b8426beb254b5877cca6c0b"
}
,{
"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": "0f16bdd5111620611b8426beb254b5877cca6c0b",
"gitDir": "test/corpus/repos/ruby",
"sha2": "c7a1c21c5248b078f851bef00424437313b8b1a9"
}
,{
"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": "c7a1c21c5248b078f851bef00424437313b8b1a9",
"gitDir": "test/corpus/repos/ruby",
"sha2": "ef1f1c6078e38df7c5229a9082bcdd131c802e9c"
}]