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

431 lines
14 KiB
JSON
Raw Normal View History

2016-10-24 20:43:31 +03:00
[{
"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"
],
2016-10-31 23:21:58 +03:00
"sha1": "625fb3deaae6820d70e1d8cfe393b3d0c19484ff",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-31 23:21:58 +03:00
"sha2": "772b3a5b2f946cafcde59cc408bf4fb10403220a"
2016-10-24 20:43:31 +03:00
}
,{
"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"
],
2016-10-31 23:21:58 +03:00
"sha1": "772b3a5b2f946cafcde59cc408bf4fb10403220a",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-31 23:21:58 +03:00
"sha2": "9236ba7f889e6adeea78ca6d2bf6a9d1484c4de5"
2016-10-24 20:43:31 +03:00
}
,{
"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"
],
2016-10-31 23:21:58 +03:00
"sha1": "9236ba7f889e6adeea78ca6d2bf6a9d1484c4de5",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-31 23:21:58 +03:00
"sha2": "fb99ecf8de7a77d6af01ac7dafd2608c9b3350c5"
2016-10-24 20:43:31 +03:00
}
,{
"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"
],
2016-10-31 23:21:58 +03:00
"sha1": "fb99ecf8de7a77d6af01ac7dafd2608c9b3350c5",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-31 23:21:58 +03:00
"sha2": "33fe30a86061a31b6c1d366d58704ccd2dc8d9c9"
2016-10-24 20:43:31 +03:00
}
,{
"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"
],
2016-10-31 23:21:58 +03:00
"sha1": "33fe30a86061a31b6c1d366d58704ccd2dc8d9c9",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-31 23:21:58 +03:00
"sha2": "91d2b531eacbc7e98bd55a9f22afc7013d4e7119"
2016-10-24 20:43:31 +03:00
}
,{
"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"
],
2016-10-31 23:21:58 +03:00
"sha1": "91d2b531eacbc7e98bd55a9f22afc7013d4e7119",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-31 23:21:58 +03:00
"sha2": "28a4aaf9ef28a5a41260138f70599d2cbcb12e23"
2016-10-24 20:43:31 +03:00
}
,{
"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"
],
2016-10-31 23:21:58 +03:00
"sha1": "28a4aaf9ef28a5a41260138f70599d2cbcb12e23",
2016-10-24 20:43:31 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-31 23:21:58 +03:00
"sha2": "0ba58b06e96f1b3ae8331ee4f06e4087a13c29f5"
2016-10-24 20:43:31 +03:00
}]