1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00
semantic/test/corpus/diff-summaries/go/switch-statements.json

1166 lines
38 KiB
JSON
Raw Normal View History

2016-11-02 05:05:43 +03:00
[{
"testCaseDescription": "go-switch-statements-insert-test",
"expectedResult": {
"changes": {
"switch-statements.go": [
{
"span": {
"insert": {
"start": [
3,
15
],
"end": [
3,
16
]
}
},
"summary": "Added the 'x' identifier"
},
{
"span": {
"insert": {
"start": [
3,
19
],
"end": [
3,
20
]
}
},
"summary": "Added the 'y' identifier"
},
{
"span": {
"insert": {
"start": [
3,
22
],
"end": [
3,
26
]
}
},
"summary": "Added the 'f1()' function call"
},
{
"span": {
"insert": {
"start": [
4,
6
],
"end": [
4,
7
]
}
},
"summary": "Added the 'x' identifier"
},
{
"span": {
"insert": {
"start": [
4,
10
],
"end": [
4,
11
]
}
},
"summary": "Added the 'z' identifier"
},
{
"span": {
"insert": {
"start": [
4,
13
],
"end": [
4,
16
]
}
},
"summary": "Added the 'g()' function call"
},
{
"span": {
"insert": {
"start": [
5,
6
],
"end": [
5,
7
]
}
},
"summary": "Added the 'x' identifier"
},
{
"span": {
"insert": {
"start": [
5,
11
],
"end": [
5,
12
]
}
},
"summary": "Added the '4'"
},
{
"span": {
"insert": {
"start": [
5,
14
],
"end": [
5,
17
]
}
},
"summary": "Added the 'h()' function call"
}
]
},
"errors": {}
},
"filePaths": [
"switch-statements.go"
],
2016-11-02 18:07:06 +03:00
"sha1": "567ea1f4317f1c40f6132f429590c78238313778",
2016-11-02 05:05:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 18:07:06 +03:00
"sha2": "162708d5ed1a15aa3b73a45694d03caa8ff64600"
2016-11-02 05:05:43 +03:00
}
,{
"testCaseDescription": "go-switch-statements-replacement-insert-test",
"expectedResult": {
"changes": {
"switch-statements.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
7,
1
]
},
{
"start": [
1,
1
],
"end": [
1,
13
]
}
]
},
"summary": "Replaced the 'main' module statement with the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"switch-statements.go"
],
2016-11-02 18:07:06 +03:00
"sha1": "162708d5ed1a15aa3b73a45694d03caa8ff64600",
2016-11-02 05:05:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 18:07:06 +03:00
"sha2": "aa251d2911ca68348719363e2aa8f828b93e2d55"
2016-11-02 05:05:43 +03:00
}
,{
"testCaseDescription": "go-switch-statements-delete-insert-test",
"expectedResult": {
"changes": {
"switch-statements.go": [
{
"span": {
"replace": [
{
"start": [
3,
15
],
"end": [
3,
16
]
},
{
"start": [
3,
15
],
"end": [
3,
16
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'x' identifier"
},
{
"span": {
"replace": [
{
"start": [
3,
19
],
"end": [
3,
20
]
},
{
"start": [
3,
19
],
"end": [
3,
20
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'y' identifier"
},
{
"span": {
"replace": [
{
"start": [
4,
6
],
"end": [
4,
7
]
},
{
"start": [
4,
6
],
"end": [
4,
7
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'x' identifier"
},
{
"span": {
"replace": [
{
"start": [
4,
10
],
"end": [
4,
11
]
},
{
"start": [
4,
10
],
"end": [
4,
11
]
}
]
},
"summary": "Replaced the 'd' identifier with the 'z' identifier"
},
{
"span": {
"replace": [
{
"start": [
5,
6
],
"end": [
5,
7
]
},
{
"start": [
5,
6
],
"end": [
5,
7
]
}
]
},
"summary": "Replaced the 'e' identifier with the 'x' identifier"
},
{
"span": {
"replace": [
{
"start": [
5,
14
],
"end": [
5,
15
]
},
{
"start": [
5,
14
],
"end": [
5,
15
]
}
]
},
"summary": "Replaced the 'f' identifier with the 'h' identifier in the h() function call"
}
]
},
"errors": {}
},
"filePaths": [
"switch-statements.go"
],
2016-11-02 18:07:06 +03:00
"sha1": "aa251d2911ca68348719363e2aa8f828b93e2d55",
2016-11-02 05:05:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 18:07:06 +03:00
"sha2": "936422d732d43522ae10af4055d8d6382e210f39"
2016-11-02 05:05:43 +03:00
}
,{
"testCaseDescription": "go-switch-statements-replacement-test",
"expectedResult": {
"changes": {
"switch-statements.go": [
{
"span": {
"replace": [
{
"start": [
3,
15
],
"end": [
3,
16
]
},
{
"start": [
3,
15
],
"end": [
3,
16
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'a' identifier"
},
{
"span": {
"replace": [
{
"start": [
3,
19
],
"end": [
3,
20
]
},
{
"start": [
3,
19
],
"end": [
3,
20
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'b' identifier"
},
{
"span": {
"replace": [
{
"start": [
4,
6
],
"end": [
4,
7
]
},
{
"start": [
4,
6
],
"end": [
4,
7
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'c' identifier"
},
{
"span": {
"replace": [
{
"start": [
4,
10
],
"end": [
4,
11
]
},
{
"start": [
4,
10
],
"end": [
4,
11
]
}
]
},
"summary": "Replaced the 'z' identifier with the 'd' identifier"
},
{
"span": {
"replace": [
{
"start": [
5,
6
],
"end": [
5,
7
]
},
{
"start": [
5,
6
],
"end": [
5,
7
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'e' identifier"
},
{
"span": {
"replace": [
{
"start": [
5,
14
],
"end": [
5,
15
]
},
{
"start": [
5,
14
],
"end": [
5,
15
]
}
]
},
"summary": "Replaced the 'h' identifier with the 'f' identifier in the f() function call"
}
]
},
"errors": {}
},
"filePaths": [
"switch-statements.go"
],
2016-11-02 18:07:06 +03:00
"sha1": "936422d732d43522ae10af4055d8d6382e210f39",
2016-11-02 05:05:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 18:07:06 +03:00
"sha2": "503efebbdb6c6e4df282ade7e83c558d1ad9c96d"
2016-11-02 05:05:43 +03:00
}
,{
"testCaseDescription": "go-switch-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"switch-statements.go": [
{
"span": {
"delete": {
"start": [
3,
15
],
"end": [
3,
16
]
}
},
"summary": "Deleted the 'a' identifier"
},
{
"span": {
"delete": {
"start": [
3,
19
],
"end": [
3,
20
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
3,
22
],
"end": [
3,
26
]
}
},
"summary": "Deleted the 'f1()' function call"
},
{
"span": {
"delete": {
"start": [
4,
6
],
"end": [
4,
7
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"start": [
4,
10
],
"end": [
4,
11
]
}
},
"summary": "Deleted the 'd' identifier"
},
{
"span": {
"delete": {
"start": [
4,
13
],
"end": [
4,
16
]
}
},
"summary": "Deleted the 'g()' function call"
},
{
"span": {
"delete": {
"start": [
5,
6
],
"end": [
5,
7
]
}
},
"summary": "Deleted the 'e' identifier"
},
{
"span": {
"delete": {
"start": [
5,
11
],
"end": [
5,
12
]
}
},
"summary": "Deleted the '4'"
},
{
"span": {
"delete": {
"start": [
5,
14
],
"end": [
5,
17
]
}
},
"summary": "Deleted the 'f()' function call"
},
{
"span": {
"delete": {
"start": [
7,
15
],
"end": [
7,
16
]
}
},
"summary": "Deleted the 'x' identifier"
},
{
"span": {
"delete": {
"start": [
7,
19
],
"end": [
7,
20
]
}
},
"summary": "Deleted the 'y' identifier"
},
{
"span": {
"delete": {
"start": [
7,
22
],
"end": [
7,
26
]
}
},
"summary": "Deleted the 'f1()' function call"
},
{
"span": {
"delete": {
"start": [
8,
6
],
"end": [
8,
7
]
}
},
"summary": "Deleted the 'x' identifier"
},
{
"span": {
"delete": {
"start": [
8,
10
],
"end": [
8,
11
]
}
},
"summary": "Deleted the 'z' identifier"
},
{
"span": {
"delete": {
"start": [
8,
13
],
"end": [
8,
16
]
}
},
"summary": "Deleted the 'g()' function call"
},
{
"span": {
"delete": {
"start": [
9,
6
],
"end": [
9,
7
]
}
},
"summary": "Deleted the 'x' identifier"
},
{
"span": {
"delete": {
"start": [
9,
11
],
"end": [
9,
12
]
}
},
"summary": "Deleted the '4'"
},
{
"span": {
"delete": {
"start": [
9,
14
],
"end": [
9,
17
]
}
},
"summary": "Deleted the 'h()' function call"
},
{
"span": {
"insert": {
"start": [
7,
15
],
"end": [
7,
16
]
}
},
"summary": "Added the 'a' identifier"
},
{
"span": {
"insert": {
"start": [
7,
19
],
"end": [
7,
20
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
7,
22
],
"end": [
7,
26
]
}
},
"summary": "Added the 'f1()' function call"
},
{
"span": {
"insert": {
"start": [
8,
6
],
"end": [
8,
7
]
}
},
"summary": "Added the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
8,
10
],
"end": [
8,
11
]
}
},
"summary": "Added the 'd' identifier"
},
{
"span": {
"insert": {
"start": [
8,
13
],
"end": [
8,
16
]
}
},
"summary": "Added the 'g()' function call"
},
{
"span": {
"insert": {
"start": [
9,
6
],
"end": [
9,
7
]
}
},
"summary": "Added the 'e' identifier"
},
{
"span": {
"insert": {
"start": [
9,
11
],
"end": [
9,
12
]
}
},
"summary": "Added the '4'"
},
{
"span": {
"insert": {
"start": [
9,
14
],
"end": [
9,
17
]
}
},
"summary": "Added the 'f()' function call"
}
]
},
"errors": {}
},
"filePaths": [
"switch-statements.go"
],
2016-11-02 18:07:06 +03:00
"sha1": "503efebbdb6c6e4df282ade7e83c558d1ad9c96d",
2016-11-02 05:05:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 18:07:06 +03:00
"sha2": "dafbac873c7724191039372a76adb7002870a599"
2016-11-02 05:05:43 +03:00
}
,{
"testCaseDescription": "go-switch-statements-delete-test",
"expectedResult": {
"changes": {
"switch-statements.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
13
]
},
{
"start": [
1,
1
],
"end": [
7,
1
]
}
]
},
"summary": "Replaced the 'main' module statement with the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"switch-statements.go"
],
2016-11-02 18:07:06 +03:00
"sha1": "dafbac873c7724191039372a76adb7002870a599",
2016-11-02 05:05:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 18:07:06 +03:00
"sha2": "a380e54d9043d02105b40b04ab6db3f724bb2a3c"
2016-11-02 05:05:43 +03:00
}
,{
"testCaseDescription": "go-switch-statements-delete-rest-test",
"expectedResult": {
"changes": {
"switch-statements.go": [
{
"span": {
"delete": {
"start": [
3,
15
],
"end": [
3,
16
]
}
},
"summary": "Deleted the 'a' identifier"
},
{
"span": {
"delete": {
"start": [
3,
19
],
"end": [
3,
20
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
3,
22
],
"end": [
3,
26
]
}
},
"summary": "Deleted the 'f1()' function call"
},
{
"span": {
"delete": {
"start": [
4,
6
],
"end": [
4,
7
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"start": [
4,
10
],
"end": [
4,
11
]
}
},
"summary": "Deleted the 'd' identifier"
},
{
"span": {
"delete": {
"start": [
4,
13
],
"end": [
4,
16
]
}
},
"summary": "Deleted the 'g()' function call"
},
{
"span": {
"delete": {
"start": [
5,
6
],
"end": [
5,
7
]
}
},
"summary": "Deleted the 'e' identifier"
},
{
"span": {
"delete": {
"start": [
5,
11
],
"end": [
5,
12
]
}
},
"summary": "Deleted the '4'"
},
{
"span": {
"delete": {
"start": [
5,
14
],
"end": [
5,
17
]
}
},
"summary": "Deleted the 'f()' function call"
}
]
},
"errors": {}
},
"filePaths": [
"switch-statements.go"
],
2016-11-02 18:07:06 +03:00
"sha1": "a380e54d9043d02105b40b04ab6db3f724bb2a3c",
2016-11-02 05:05:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 18:07:06 +03:00
"sha2": "48b6876aec3649bd6c1a5d151bc936a44ae2497c"
2016-11-02 05:05:43 +03:00
}]