1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +03:00
semantic/test/corpus/diff-summaries/ruby/hash.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": "c736c945fe8efbed56310803a1a66638636f65be",
"gitDir": "test/corpus/repos/ruby",
"sha2": "f1f55d325dcad5ce1cfef2418cf633b630b86752"
}
,{
"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": "f1f55d325dcad5ce1cfef2418cf633b630b86752",
"gitDir": "test/corpus/repos/ruby",
"sha2": "6ce17b8d83e665d912c2b53c48438528ed8e1a50"
}
,{
"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": "6ce17b8d83e665d912c2b53c48438528ed8e1a50",
"gitDir": "test/corpus/repos/ruby",
"sha2": "0d88644c59e52a365962cf0602698d482efbf1a2"
}
,{
"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": "0d88644c59e52a365962cf0602698d482efbf1a2",
"gitDir": "test/corpus/repos/ruby",
"sha2": "1f58bf3ed64f92181537481c7bb10688badcfbd3"
}
,{
"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": "1f58bf3ed64f92181537481c7bb10688badcfbd3",
"gitDir": "test/corpus/repos/ruby",
"sha2": "f938f27902932d157242e5d048425d2d2b331438"
}
,{
"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": "f938f27902932d157242e5d048425d2d2b331438",
"gitDir": "test/corpus/repos/ruby",
"sha2": "d8cbab87a189761f6d0191d63f3a156f94d9e6b0"
}
,{
"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": "d8cbab87a189761f6d0191d63f3a156f94d9e6b0",
"gitDir": "test/corpus/repos/ruby",
"sha2": "1e7df290a32fdbe1e936d94c75770ade1d2d8b91"
}]