1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/ruby/hash.json
2016-11-02 10:52:40 -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": "6c1a8a4d11f4387e2baeee222283f9459f83d931",
"gitDir": "test/corpus/repos/ruby",
"sha2": "360736c5978801b58d53b1a07e2254ec7e03c776"
}
,{
"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": "360736c5978801b58d53b1a07e2254ec7e03c776",
"gitDir": "test/corpus/repos/ruby",
"sha2": "0ee9a946a9b4bab68e9d75e83a181460762013fe"
}
,{
"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": "0ee9a946a9b4bab68e9d75e83a181460762013fe",
"gitDir": "test/corpus/repos/ruby",
"sha2": "2d27aa664b283de8207e8f3b4b5fb19ae8b72ac6"
}
,{
"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": "2d27aa664b283de8207e8f3b4b5fb19ae8b72ac6",
"gitDir": "test/corpus/repos/ruby",
"sha2": "75e45335c99698660909e3b04613664ca4381ad5"
}
,{
"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": "75e45335c99698660909e3b04613664ca4381ad5",
"gitDir": "test/corpus/repos/ruby",
"sha2": "9d53c4d9b384a72eaa7df71fa5bc80d971fd49b2"
}
,{
"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": "9d53c4d9b384a72eaa7df71fa5bc80d971fd49b2",
"gitDir": "test/corpus/repos/ruby",
"sha2": "9bc8d1f1cdedd060b10764e57be56883cfe23e21"
}
,{
"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": "9bc8d1f1cdedd060b10764e57be56883cfe23e21",
"gitDir": "test/corpus/repos/ruby",
"sha2": "2caa111b93cdfe27ee688fb42530d61864469f6b"
}]