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/rune-literals.json

1166 lines
42 KiB
JSON
Raw Normal View History

2016-11-02 18:07:06 +03:00
[{
"testCaseDescription": "go-rune-literals-insert-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
2016-11-02 18:07:06 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"rune-literals.go"
],
"sha1": "3a61a858942b4899c542089a62db4e48aabe2e0b",
2016-11-02 18:07:06 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "1ca98722dc54335828a92a6f907ab275bf9087f8"
2016-11-02 18:07:06 +03:00
}
,{
"testCaseDescription": "go-rune-literals-replacement-insert-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Added the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Added the 'b' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Added the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Added the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Added the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable"
},
{
"span": {
"insert": {
"start": [
12,
1
],
"end": [
20,
2
]
}
},
"summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
},
{
"span": {
"insert": {
"start": [
12,
1
],
"end": [
20,
2
]
}
},
"summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
},
{
"span": {
"insert": {
"start": [
12,
1
],
"end": [
20,
2
]
}
},
"summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
2016-11-02 18:07:06 +03:00
},
{
"span": {
"insert": {
"start": [
12,
1
],
"end": [
20,
2
]
}
},
"summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
},
{
"span": {
"insert": {
"start": [
12,
1
],
"end": [
20,
2
]
}
},
"summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
2016-11-02 18:07:06 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"rune-literals.go"
],
"sha1": "1ca98722dc54335828a92a6f907ab275bf9087f8",
2016-11-02 18:07:06 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "5d9b8caa096a3020ba77b5e2d19b67a3ff75f564"
2016-11-02 18:07:06 +03:00
}
,{
"testCaseDescription": "go-rune-literals-delete-insert-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
},
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
2
]
},
{
"start": [
9,
1
],
"end": [
9,
2
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'c' identifier in the const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n) variable of the 'main' module"
2016-11-02 18:07:06 +03:00
},
{
"span": {
"replace": [
{
"start": [
4,
5
],
"end": [
4,
8
]
},
{
"start": [
9,
5
],
"end": [
9,
13
]
}
]
},
"summary": "Replaced the ''1'' rune_literal with the ''\\u0000'' rune_literal in the const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n) variable of the 'main' module"
2016-11-02 18:07:06 +03:00
},
{
"span": {
"replace": [
{
"start": [
4,
5
],
"end": [
4,
8
]
},
{
"start": [
9,
5
],
"end": [
9,
13
]
}
]
},
"summary": "Replaced the ''1'' rune_literal with the ''\\u0000'' rune_literal in the const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n) variable of the 'main' module"
2016-11-02 18:07:06 +03:00
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'b' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable"
}
]
},
"errors": {}
},
"filePaths": [
"rune-literals.go"
],
"sha1": "5d9b8caa096a3020ba77b5e2d19b67a3ff75f564",
2016-11-02 18:07:06 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "b2c010468e685bb45e9cbd60e42aa97787d18154"
2016-11-02 18:07:06 +03:00
}
,{
"testCaseDescription": "go-rune-literals-replacement-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Added the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Added the 'b' variable"
},
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
2
]
},
{
"start": [
7,
1
2016-11-02 18:07:06 +03:00
],
"end": [
7,
2
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'c' identifier in the const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n) variable of the 'main' module"
2016-11-02 18:07:06 +03:00
},
{
"span": {
"replace": [
{
"start": [
4,
5
],
"end": [
4,
8
]
},
{
"start": [
7,
5
],
"end": [
7,
13
]
}
]
},
"summary": "Replaced the ''0'' rune_literal with the ''\\u0011'' rune_literal in the const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n) variable of the 'main' module"
2016-11-02 18:07:06 +03:00
},
{
"span": {
"replace": [
{
"start": [
4,
5
],
"end": [
4,
8
]
},
{
"start": [
7,
5
],
"end": [
7,
13
]
}
]
},
"summary": "Replaced the ''0'' rune_literal with the ''\\u0011'' rune_literal in the const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n) variable of the 'main' module"
2016-11-02 18:07:06 +03:00
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Added the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable"
},
{
"span": {
"replace": [
{
"start": [
5,
1
],
"end": [
5,
2
]
},
{
"start": [
10,
1
],
"end": [
10,
2
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'c' identifier in the const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n) variable of the 'main' module"
2016-11-02 18:07:06 +03:00
},
{
"span": {
"replace": [
{
"start": [
5,
5
],
"end": [
5,
9
]
},
{
"start": [
10,
5
],
"end": [
10,
17
]
}
]
},
"summary": "Replaced the ''\\''' rune_literal with the ''\\U01234568'' rune_literal in the const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n) variable of the 'main' module"
2016-11-02 18:07:06 +03:00
},
{
"span": {
"replace": [
{
"start": [
5,
5
],
"end": [
5,
9
]
},
{
"start": [
10,
5
],
"end": [
10,
17
]
}
]
},
"summary": "Replaced the ''\\''' rune_literal with the ''\\U01234568'' rune_literal in the const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n) variable of the 'main' module"
2016-11-02 18:07:06 +03:00
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
}
]
},
"errors": {}
},
"filePaths": [
"rune-literals.go"
],
"sha1": "b2c010468e685bb45e9cbd60e42aa97787d18154",
2016-11-02 18:07:06 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "1d6520c3c6c2909e82e258789d618e9920ee8483"
2016-11-02 18:07:06 +03:00
}
,{
"testCaseDescription": "go-rune-literals-delete-replacement-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'b' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable"
},
{
"span": {
"delete": {
"start": [
12,
1
],
"end": [
20,
2
]
}
},
"summary": "Deleted the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
},
{
"span": {
"delete": {
"start": [
12,
1
],
"end": [
20,
2
]
}
},
"summary": "Deleted the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
2016-11-02 18:07:06 +03:00
},
{
"span": {
"delete": {
"start": [
12,
1
],
"end": [
20,
2
]
}
},
"summary": "Deleted the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
},
{
"span": {
"delete": {
"start": [
12,
1
],
"end": [
20,
2
]
}
},
"summary": "Deleted the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
},
{
"span": {
"delete": {
"start": [
12,
1
],
"end": [
20,
2
]
}
},
"summary": "Deleted the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
2016-11-02 18:07:06 +03:00
},
{
"span": {
"insert": {
"start": [
12,
1
],
"end": [
20,
2
]
}
},
"summary": "Added the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable"
},
{
"span": {
"insert": {
"start": [
12,
1
],
"end": [
20,
2
]
}
},
"summary": "Added the 'b' variable"
},
{
"span": {
"insert": {
"start": [
12,
1
],
"end": [
20,
2
]
}
},
"summary": "Added the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable"
},
{
"span": {
"insert": {
"start": [
12,
1
],
"end": [
20,
2
]
}
},
"summary": "Added the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable"
},
{
"span": {
"insert": {
"start": [
12,
1
],
"end": [
20,
2
]
}
},
"summary": "Added the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable"
2016-11-02 18:07:06 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"rune-literals.go"
],
"sha1": "1d6520c3c6c2909e82e258789d618e9920ee8483",
2016-11-02 18:07:06 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "1283ba9405675015e964aab10f36a5975cf25338"
2016-11-02 18:07:06 +03:00
}
,{
"testCaseDescription": "go-rune-literals-delete-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
2016-11-02 18:07:06 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"rune-literals.go"
],
"sha1": "1283ba9405675015e964aab10f36a5975cf25338",
2016-11-02 18:07:06 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "bfde70b9a4f2658e15fae5f3f6f3bccad9ecdb0e"
2016-11-02 18:07:06 +03:00
}
,{
"testCaseDescription": "go-rune-literals-delete-rest-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'b' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable"
2016-11-02 18:07:06 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"rune-literals.go"
],
"sha1": "bfde70b9a4f2658e15fae5f3f6f3bccad9ecdb0e",
2016-11-02 18:07:06 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "c2ac2649bbe37066912f27d1a9dd06e502bbd931"
2016-11-02 18:07:06 +03:00
}]