1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
semantic/test/corpus/diff-summaries/go/int-literals.json

515 lines
16 KiB
JSON
Raw Normal View History

2016-11-01 23:33:43 +03:00
[{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-int-literals-insert-test",
2016-11-01 23:33:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"int-literals.go": [
2016-11-01 23:33:43 +03:00
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'identifier' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'number' variable"
2016-11-01 23:33:43 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"int-literals.go"
2016-11-01 23:33:43 +03:00
],
2016-11-03 01:46:48 +03:00
"sha1": "13a321b9bc2e471a6183af132c1a3dd45cd64702",
2016-11-01 23:33:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-03 01:46:48 +03:00
"sha2": "90e5953c13fe210e5d7f197be6efb0e16ddf86ff"
2016-11-01 23:33:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-int-literals-replacement-insert-test",
2016-11-01 23:33:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"int-literals.go": [
2016-11-01 23:33:43 +03:00
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'identifier' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'number' variable"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
8,
2
]
}
},
"summary": "Added the 'identifier' variable"
2016-11-01 23:33:43 +03:00
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
8,
2
]
}
},
"summary": "Added the 'number' variable"
2016-11-01 23:33:43 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"int-literals.go"
2016-11-01 23:33:43 +03:00
],
2016-11-03 01:46:48 +03:00
"sha1": "90e5953c13fe210e5d7f197be6efb0e16ddf86ff",
2016-11-01 23:33:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-03 01:46:48 +03:00
"sha2": "5ea21f142a6689e8a0697e72c4dc819606ae2006"
2016-11-01 23:33:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-int-literals-delete-insert-test",
2016-11-01 23:33:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"int-literals.go": [
2016-11-01 23:33:43 +03:00
{
"span": {
"replace": [
{
"start": [
4,
12
],
"end": [
4,
13
]
},
{
"start": [
4,
12
],
"end": [
4,
13
]
}
]
},
"summary": "Replaced '5' with '2' in the identifier variable of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
4,
5
],
"end": [
4,
6
]
},
{
"start": [
4,
5
],
"end": [
4,
6
]
}
]
},
"summary": "Replaced '4' with '1' in the number variable of the 'main' module"
2016-11-01 23:33:43 +03:00
},
{
"span": {
"replace": [
{
"start": [
4,
19
],
"end": [
4,
20
]
},
{
"start": [
4,
19
],
"end": [
4,
20
]
}
]
},
"summary": "Replaced '6' with '3' in the number variable of the 'main' module"
2016-11-01 23:33:43 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"int-literals.go"
2016-11-01 23:33:43 +03:00
],
2016-11-03 01:46:48 +03:00
"sha1": "5ea21f142a6689e8a0697e72c4dc819606ae2006",
2016-11-01 23:33:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-03 01:46:48 +03:00
"sha2": "2014236a1241d3d1ccd7290f97ef71fcc3d297e4"
2016-11-01 23:33:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-int-literals-replacement-test",
2016-11-01 23:33:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"int-literals.go": [
2016-11-01 23:33:43 +03:00
{
"span": {
"replace": [
{
"start": [
4,
12
],
"end": [
4,
13
]
},
{
"start": [
4,
12
],
"end": [
4,
13
]
}
]
},
"summary": "Replaced '2' with '5' in the identifier variable of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
4,
5
],
"end": [
4,
6
]
},
{
"start": [
4,
5
],
"end": [
4,
6
]
}
]
},
"summary": "Replaced '1' with '4' in the number variable of the 'main' module"
2016-11-01 23:33:43 +03:00
},
{
"span": {
"replace": [
{
"start": [
4,
19
],
"end": [
4,
20
]
},
{
"start": [
4,
19
],
"end": [
4,
20
]
}
]
},
"summary": "Replaced '3' with '6' in the number variable of the 'main' module"
2016-11-01 23:33:43 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"int-literals.go"
2016-11-01 23:33:43 +03:00
],
2016-11-03 01:46:48 +03:00
"sha1": "2014236a1241d3d1ccd7290f97ef71fcc3d297e4",
2016-11-01 23:33:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-03 01:46:48 +03:00
"sha2": "8bbaa4474fb4285b9d64ba702c23c1bb08430885"
2016-11-01 23:33:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-int-literals-delete-replacement-test",
2016-11-01 23:33:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"int-literals.go": [
2016-11-01 23:33:43 +03:00
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'identifier' variable"
2016-11-01 23:33:43 +03:00
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'number' variable"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
8,
2
]
}
},
"summary": "Deleted the 'identifier' variable"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
8,
2
]
}
},
"summary": "Deleted the 'number' variable"
},
{
"span": {
"insert": {
2016-11-01 23:33:43 +03:00
"start": [
6,
1
],
"end": [
8,
2
]
}
},
"summary": "Added the 'identifier' variable"
2016-11-01 23:33:43 +03:00
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
8,
2
]
}
},
"summary": "Added the 'number' variable"
2016-11-01 23:33:43 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"int-literals.go"
2016-11-01 23:33:43 +03:00
],
2016-11-03 01:46:48 +03:00
"sha1": "8bbaa4474fb4285b9d64ba702c23c1bb08430885",
2016-11-01 23:33:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-03 01:46:48 +03:00
"sha2": "0343b902c4448d1931b9452bc03644632bcaf2d6"
2016-11-01 23:33:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-int-literals-delete-test",
2016-11-01 23:33:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"int-literals.go": [
2016-11-01 23:33:43 +03:00
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'identifier' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'number' variable"
2016-11-01 23:33:43 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"int-literals.go"
2016-11-01 23:33:43 +03:00
],
2016-11-03 01:46:48 +03:00
"sha1": "0343b902c4448d1931b9452bc03644632bcaf2d6",
2016-11-01 23:33:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-03 01:46:48 +03:00
"sha2": "301d5a697646fad03be1a93f745092cdb0f88000"
2016-11-01 23:33:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-int-literals-delete-rest-test",
2016-11-01 23:33:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"int-literals.go": [
2016-11-01 23:33:43 +03:00
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'identifier' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'number' variable"
2016-11-01 23:33:43 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"int-literals.go"
2016-11-01 23:33:43 +03:00
],
2016-11-03 01:46:48 +03:00
"sha1": "301d5a697646fad03be1a93f745092cdb0f88000",
2016-11-01 23:33:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-03 01:46:48 +03:00
"sha2": "4ee4054c6f8e04e23a7c6bc16d7c11c3ad3fa4a2"
2016-11-01 23:33:43 +03:00
}]