1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/go/constructors.json
2016-11-02 16:35:38 -04:00

1715 lines
55 KiB
JSON

[{
"testCaseDescription": "go-constructors-insert-test",
"expectedResult": {
"changes": {
"constructors.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
3,
1
]
},
{
"start": [
1,
1
],
"end": [
1,
13
]
}
]
},
"summary": "Replaced the 'main' module with the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"constructors.go"
],
"sha1": "a819b2f07a89c93b23d969995e2d4930f86d922a",
"gitDir": "test/corpus/repos/go",
"sha2": "26cbe6f4c8de9dd56b576b8ea08287f3689dd14c"
}
,{
"testCaseDescription": "go-constructors-replacement-insert-test",
"expectedResult": {
"changes": {
"constructors.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
5
]
}
},
"summary": "Added the 'make' identifier"
},
{
"span": {
"insert": {
"start": [
3,
13
],
"end": [
3,
19
]
}
},
"summary": "Added the 'string' identifier"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
5
]
}
},
"summary": "Added the 'make' identifier"
},
{
"span": {
"insert": {
"start": [
4,
13
],
"end": [
4,
19
]
}
},
"summary": "Added the 'string' identifier"
},
{
"span": {
"insert": {
"start": [
4,
22
],
"end": [
4,
25
]
}
},
"summary": "Added the 'new' identifier"
},
{
"span": {
"insert": {
"start": [
4,
28
],
"end": [
4,
31
]
}
},
"summary": "Added the 'old' identifier"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
5
]
}
},
"summary": "Added 'make' identifier"
},
{
"span": {
"insert": {
"start": [
5,
13
],
"end": [
5,
19
]
}
},
"summary": "Added 'string' identifier"
},
{
"span": {
"insert": {
"start": [
5,
21
],
"end": [
5,
22
]
}
},
"summary": "Added '7'"
},
{
"span": {
"insert": {
"start": [
5,
24
],
"end": [
5,
26
]
}
},
"summary": "Added '11'"
},
{
"span": {
"insert": {
"start": [
6,
2
],
"end": [
6,
5
]
}
},
"summary": "Added the 'new' identifier"
},
{
"span": {
"insert": {
"start": [
6,
10
],
"end": [
6,
13
]
}
},
"summary": "Added the 'int' identifier"
},
{
"span": {
"insert": {
"start": [
6,
14
],
"end": [
6,
17
]
}
},
"summary": "Added the 'int' identifier"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
5
]
}
},
"summary": "Added the 'make' identifier"
},
{
"span": {
"insert": {
"start": [
7,
13
],
"end": [
7,
16
]
}
},
"summary": "Added the 'int' identifier"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
5
]
}
},
"summary": "Added the 'make' identifier"
},
{
"span": {
"insert": {
"start": [
8,
13
],
"end": [
8,
16
]
}
},
"summary": "Added the 'int' identifier"
},
{
"span": {
"insert": {
"start": [
8,
19
],
"end": [
8,
22
]
}
},
"summary": "Added the 'new' identifier"
},
{
"span": {
"insert": {
"start": [
8,
25
],
"end": [
8,
28
]
}
},
"summary": "Added the 'old' identifier"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
9,
5
]
}
},
"summary": "Added 'make' identifier"
},
{
"span": {
"insert": {
"start": [
9,
13
],
"end": [
9,
16
]
}
},
"summary": "Added 'int' identifier"
},
{
"span": {
"insert": {
"start": [
9,
18
],
"end": [
9,
19
]
}
},
"summary": "Added '5'"
},
{
"span": {
"insert": {
"start": [
9,
21
],
"end": [
9,
23
]
}
},
"summary": "Added '10'"
},
{
"span": {
"insert": {
"start": [
10,
2
],
"end": [
10,
5
]
}
},
"summary": "Added the 'new' identifier"
},
{
"span": {
"insert": {
"start": [
10,
10
],
"end": [
10,
16
]
}
},
"summary": "Added the 'string' identifier"
},
{
"span": {
"insert": {
"start": [
10,
17
],
"end": [
10,
23
]
}
},
"summary": "Added the 'string' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"constructors.go"
],
"sha1": "26cbe6f4c8de9dd56b576b8ea08287f3689dd14c",
"gitDir": "test/corpus/repos/go",
"sha2": "4c659f0fe5f38049c286f49aa9a1ec7d1a51f24c"
}
,{
"testCaseDescription": "go-constructors-delete-insert-test",
"expectedResult": {
"changes": {
"constructors.go": [
{
"span": {
"replace": [
{
"start": [
3,
13
],
"end": [
3,
19
]
},
{
"start": [
3,
13
],
"end": [
3,
16
]
}
]
},
"summary": "Replaced the 'string' identifier with the 'int' identifier"
},
{
"span": {
"replace": [
{
"start": [
4,
13
],
"end": [
4,
19
]
},
{
"start": [
4,
13
],
"end": [
4,
16
]
}
]
},
"summary": "Replaced the 'string' identifier with the 'int' identifier"
},
{
"span": {
"replace": [
{
"start": [
5,
13
],
"end": [
5,
19
]
},
{
"start": [
5,
13
],
"end": [
5,
16
]
}
]
},
"summary": "Replaced the 'string' identifier with the 'int' identifier"
},
{
"span": {
"replace": [
{
"start": [
5,
21
],
"end": [
5,
22
]
},
{
"start": [
5,
18
],
"end": [
5,
19
]
}
]
},
"summary": "Replaced '7' with '5'"
},
{
"span": {
"replace": [
{
"start": [
5,
24
],
"end": [
5,
26
]
},
{
"start": [
5,
21
],
"end": [
5,
23
]
}
]
},
"summary": "Replaced '11' with '10'"
},
{
"span": {
"replace": [
{
"start": [
6,
10
],
"end": [
6,
13
]
},
{
"start": [
6,
10
],
"end": [
6,
16
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier"
},
{
"span": {
"replace": [
{
"start": [
6,
14
],
"end": [
6,
17
]
},
{
"start": [
6,
17
],
"end": [
6,
23
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"constructors.go"
],
"sha1": "4c659f0fe5f38049c286f49aa9a1ec7d1a51f24c",
"gitDir": "test/corpus/repos/go",
"sha2": "cf1769764a972a11f13484f0a7e67660d38b7199"
}
,{
"testCaseDescription": "go-constructors-replacement-test",
"expectedResult": {
"changes": {
"constructors.go": [
{
"span": {
"replace": [
{
"start": [
3,
13
],
"end": [
3,
16
]
},
{
"start": [
3,
13
],
"end": [
3,
19
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier"
},
{
"span": {
"replace": [
{
"start": [
4,
13
],
"end": [
4,
16
]
},
{
"start": [
4,
13
],
"end": [
4,
19
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier"
},
{
"span": {
"replace": [
{
"start": [
5,
13
],
"end": [
5,
16
]
},
{
"start": [
5,
13
],
"end": [
5,
19
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier"
},
{
"span": {
"replace": [
{
"start": [
5,
18
],
"end": [
5,
19
]
},
{
"start": [
5,
21
],
"end": [
5,
22
]
}
]
},
"summary": "Replaced '5' with '7'"
},
{
"span": {
"replace": [
{
"start": [
5,
21
],
"end": [
5,
23
]
},
{
"start": [
5,
24
],
"end": [
5,
26
]
}
]
},
"summary": "Replaced '10' with '11'"
},
{
"span": {
"replace": [
{
"start": [
6,
10
],
"end": [
6,
16
]
},
{
"start": [
6,
10
],
"end": [
6,
13
]
}
]
},
"summary": "Replaced the 'string' identifier with the 'int' identifier"
},
{
"span": {
"replace": [
{
"start": [
6,
17
],
"end": [
6,
23
]
},
{
"start": [
6,
14
],
"end": [
6,
17
]
}
]
},
"summary": "Replaced the 'string' identifier with the 'int' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"constructors.go"
],
"sha1": "cf1769764a972a11f13484f0a7e67660d38b7199",
"gitDir": "test/corpus/repos/go",
"sha2": "8371b80cd14d0c0d719f0c8a42b763e93ffe0dce"
}
,{
"testCaseDescription": "go-constructors-delete-replacement-test",
"expectedResult": {
"changes": {
"constructors.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
5
]
}
},
"summary": "Deleted the 'make' identifier"
},
{
"span": {
"delete": {
"start": [
3,
13
],
"end": [
3,
19
]
}
},
"summary": "Deleted the 'string' identifier"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
5
]
}
},
"summary": "Deleted the 'make' identifier"
},
{
"span": {
"delete": {
"start": [
4,
13
],
"end": [
4,
19
]
}
},
"summary": "Deleted the 'string' identifier"
},
{
"span": {
"delete": {
"start": [
4,
22
],
"end": [
4,
25
]
}
},
"summary": "Deleted the 'new' identifier"
},
{
"span": {
"delete": {
"start": [
4,
28
],
"end": [
4,
31
]
}
},
"summary": "Deleted the 'old' identifier"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
5
]
}
},
"summary": "Deleted 'make' identifier"
},
{
"span": {
"delete": {
"start": [
5,
13
],
"end": [
5,
19
]
}
},
"summary": "Deleted 'string' identifier"
},
{
"span": {
"delete": {
"start": [
5,
21
],
"end": [
5,
22
]
}
},
"summary": "Deleted '7'"
},
{
"span": {
"delete": {
"start": [
5,
24
],
"end": [
5,
26
]
}
},
"summary": "Deleted '11'"
},
{
"span": {
"delete": {
"start": [
6,
2
],
"end": [
6,
5
]
}
},
"summary": "Deleted the 'new' identifier"
},
{
"span": {
"delete": {
"start": [
6,
10
],
"end": [
6,
13
]
}
},
"summary": "Deleted the 'int' identifier"
},
{
"span": {
"delete": {
"start": [
6,
14
],
"end": [
6,
17
]
}
},
"summary": "Deleted the 'int' identifier"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
5
]
}
},
"summary": "Deleted the 'make' identifier"
},
{
"span": {
"delete": {
"start": [
7,
13
],
"end": [
7,
16
]
}
},
"summary": "Deleted the 'int' identifier"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
8,
5
]
}
},
"summary": "Deleted the 'make' identifier"
},
{
"span": {
"delete": {
"start": [
8,
13
],
"end": [
8,
16
]
}
},
"summary": "Deleted the 'int' identifier"
},
{
"span": {
"delete": {
"start": [
8,
19
],
"end": [
8,
22
]
}
},
"summary": "Deleted the 'new' identifier"
},
{
"span": {
"delete": {
"start": [
8,
25
],
"end": [
8,
28
]
}
},
"summary": "Deleted the 'old' identifier"
},
{
"span": {
"delete": {
"start": [
9,
1
],
"end": [
9,
5
]
}
},
"summary": "Deleted 'make' identifier"
},
{
"span": {
"delete": {
"start": [
9,
13
],
"end": [
9,
16
]
}
},
"summary": "Deleted 'int' identifier"
},
{
"span": {
"delete": {
"start": [
9,
18
],
"end": [
9,
19
]
}
},
"summary": "Deleted '5'"
},
{
"span": {
"delete": {
"start": [
9,
21
],
"end": [
9,
23
]
}
},
"summary": "Deleted '10'"
},
{
"span": {
"delete": {
"start": [
10,
2
],
"end": [
10,
5
]
}
},
"summary": "Deleted the 'new' identifier"
},
{
"span": {
"delete": {
"start": [
10,
10
],
"end": [
10,
16
]
}
},
"summary": "Deleted the 'string' identifier"
},
{
"span": {
"delete": {
"start": [
10,
17
],
"end": [
10,
23
]
}
},
"summary": "Deleted the 'string' identifier"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
5
]
}
},
"summary": "Added the 'make' identifier"
},
{
"span": {
"insert": {
"start": [
7,
13
],
"end": [
7,
19
]
}
},
"summary": "Added the 'string' identifier"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
5
]
}
},
"summary": "Added the 'make' identifier"
},
{
"span": {
"insert": {
"start": [
8,
13
],
"end": [
8,
19
]
}
},
"summary": "Added the 'string' identifier"
},
{
"span": {
"insert": {
"start": [
8,
22
],
"end": [
8,
25
]
}
},
"summary": "Added the 'new' identifier"
},
{
"span": {
"insert": {
"start": [
8,
28
],
"end": [
8,
31
]
}
},
"summary": "Added the 'old' identifier"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
9,
5
]
}
},
"summary": "Added 'make' identifier"
},
{
"span": {
"insert": {
"start": [
9,
13
],
"end": [
9,
19
]
}
},
"summary": "Added 'string' identifier"
},
{
"span": {
"insert": {
"start": [
9,
21
],
"end": [
9,
22
]
}
},
"summary": "Added '7'"
},
{
"span": {
"insert": {
"start": [
9,
24
],
"end": [
9,
26
]
}
},
"summary": "Added '11'"
},
{
"span": {
"insert": {
"start": [
10,
2
],
"end": [
10,
5
]
}
},
"summary": "Added the 'new' identifier"
},
{
"span": {
"insert": {
"start": [
10,
10
],
"end": [
10,
13
]
}
},
"summary": "Added the 'int' identifier"
},
{
"span": {
"insert": {
"start": [
10,
14
],
"end": [
10,
17
]
}
},
"summary": "Added the 'int' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"constructors.go"
],
"sha1": "8371b80cd14d0c0d719f0c8a42b763e93ffe0dce",
"gitDir": "test/corpus/repos/go",
"sha2": "d2a335eacc15bf0e51820fa23a5e02ee06ea711f"
}
,{
"testCaseDescription": "go-constructors-delete-test",
"expectedResult": {
"changes": {
"constructors.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
5
]
}
},
"summary": "Deleted the 'make' identifier"
},
{
"span": {
"delete": {
"start": [
3,
13
],
"end": [
3,
16
]
}
},
"summary": "Deleted the 'int' identifier"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
5
]
}
},
"summary": "Deleted the 'make' identifier"
},
{
"span": {
"delete": {
"start": [
4,
13
],
"end": [
4,
16
]
}
},
"summary": "Deleted the 'int' identifier"
},
{
"span": {
"delete": {
"start": [
4,
19
],
"end": [
4,
22
]
}
},
"summary": "Deleted the 'new' identifier"
},
{
"span": {
"delete": {
"start": [
4,
25
],
"end": [
4,
28
]
}
},
"summary": "Deleted the 'old' identifier"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
5
]
}
},
"summary": "Deleted 'make' identifier"
},
{
"span": {
"delete": {
"start": [
5,
13
],
"end": [
5,
16
]
}
},
"summary": "Deleted 'int' identifier"
},
{
"span": {
"delete": {
"start": [
5,
18
],
"end": [
5,
19
]
}
},
"summary": "Deleted '5'"
},
{
"span": {
"delete": {
"start": [
5,
21
],
"end": [
5,
23
]
}
},
"summary": "Deleted '10'"
},
{
"span": {
"delete": {
"start": [
6,
2
],
"end": [
6,
5
]
}
},
"summary": "Deleted the 'new' identifier"
},
{
"span": {
"delete": {
"start": [
6,
10
],
"end": [
6,
16
]
}
},
"summary": "Deleted the 'string' identifier"
},
{
"span": {
"delete": {
"start": [
6,
17
],
"end": [
6,
23
]
}
},
"summary": "Deleted the 'string' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"constructors.go"
],
"sha1": "d2a335eacc15bf0e51820fa23a5e02ee06ea711f",
"gitDir": "test/corpus/repos/go",
"sha2": "11ea160a28d4dd8e67f952bdda3a37c3184f6ce1"
}
,{
"testCaseDescription": "go-constructors-delete-rest-test",
"expectedResult": {
"changes": {
"constructors.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
13
]
},
{
"start": [
1,
1
],
"end": [
3,
1
]
}
]
},
"summary": "Replaced the 'main' module with the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"constructors.go"
],
"sha1": "11ea160a28d4dd8e67f952bdda3a37c3184f6ce1",
"gitDir": "test/corpus/repos/go",
"sha2": "bf8f6131f9a7509f80db37eb39e4201db1776303"
}]