1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/go/rune-literals.json
2017-01-09 17:21:36 -05:00

917 lines
29 KiB
JSON

[{
"testCaseDescription": "go-rune-literals-setup-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
3,
1
]
}
},
"summary": "Added the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"rune-literals.go"
],
"patch": [
"diff --git a/rune-literals.go b/rune-literals.go",
"index e69de29..c9ecbf5 100644",
"--- a/rune-literals.go",
"+++ b/rune-literals.go",
"@@ -0,0 +1,2 @@",
"+package main",
"+"
],
"gitDir": "test/corpus/repos/go",
"shas": "747db897a06270aa19ea8682dc582e46677b713a..81887baada94ef3844814f42639348829486d4c2"
}
,{
"testCaseDescription": "go-rune-literals-insert-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'a' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the ''0'' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'b' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the ''\\''' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'c' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the ''\\u0000'' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'c' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the ''\\U01234567'' variable in the main module"
}
]
},
"errors": {
"rune-literals.go": [
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' at line 2, column 1 - line 10, column 2 in the main module"
}
]
}
},
"filePaths": [
"rune-literals.go"
],
"patch": [
"diff --git a/rune-literals.go b/rune-literals.go",
"index c9ecbf5..7ecf7d8 100644",
"--- a/rune-literals.go",
"+++ b/rune-literals.go",
"@@ -1,2 +1,10 @@",
" package main",
"-",
"+const (",
"+a = '0'",
"+b = '\\''",
"+c = '\\'",
"+c = '",
"+'",
"+c = '\\u0000'",
"+c = '\\U01234567'",
"+)"
],
"gitDir": "test/corpus/repos/go",
"shas": "81887baada94ef3844814f42639348829486d4c2..148f9ffc0bf51efd41f560c93eafe5c7507b1ccf"
}
,{
"testCaseDescription": "go-rune-literals-replacement-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
"replace": [
{
"start": [
3,
5
],
"end": [
3,
8
]
},
{
"start": [
3,
5
],
"end": [
3,
8
]
}
]
},
"summary": "Replaced the ''0'' rune_literal with the ''1'' rune_literal in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'c' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the ''\\u0011'' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'c' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the ''\\U01234568'' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the 'b' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the ''\\''' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the 'c' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the ''\\u0000'' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the 'c' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the ''\\U01234567'' variable in the main module"
}
]
},
"errors": {
"rune-literals.go": [
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' at line 2, column 1 - line 10, column 2 in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' at line 2, column 1 - line 10, column 2 in the main module"
}
]
}
},
"filePaths": [
"rune-literals.go"
],
"patch": [
"diff --git a/rune-literals.go b/rune-literals.go",
"index 7ecf7d8..cee94e2 100644",
"--- a/rune-literals.go",
"+++ b/rune-literals.go",
"@@ -1,10 +1,10 @@",
" package main",
" const (",
"-a = '0'",
"-b = '\\''",
"+a = '1'",
"+b = '",
"+''",
"+c = '\\u0011'",
" c = '\\'",
"-c = '",
"-'",
"-c = '\\u0000'",
"-c = '\\U01234567'",
"+c = '\\u0022'",
"+c = '\\U01234568'",
" )"
],
"gitDir": "test/corpus/repos/go",
"shas": "148f9ffc0bf51efd41f560c93eafe5c7507b1ccf..4f3c51b12590caa5727917c59e8d1f278a8caf0b"
}
,{
"testCaseDescription": "go-rune-literals-delete-replacement-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
"replace": [
{
"start": [
3,
5
],
"end": [
3,
8
]
},
{
"start": [
3,
5
],
"end": [
3,
8
]
}
]
},
"summary": "Replaced the ''1'' rune_literal with the ''0'' rune_literal in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'b' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the ''\\''' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'c' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the ''\\u0000'' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'c' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the ''\\U01234567'' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the 'c' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the ''\\u0011'' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the 'c' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the ''\\U01234568'' variable in the main module"
}
]
},
"errors": {
"rune-literals.go": [
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' at line 2, column 1 - line 10, column 2 in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' at line 2, column 1 - line 10, column 2 in the main module"
}
]
}
},
"filePaths": [
"rune-literals.go"
],
"patch": [
"diff --git a/rune-literals.go b/rune-literals.go",
"index cee94e2..7ecf7d8 100644",
"--- a/rune-literals.go",
"+++ b/rune-literals.go",
"@@ -1,10 +1,10 @@",
" package main",
" const (",
"-a = '1'",
"-b = '",
"-''",
"-c = '\\u0011'",
"+a = '0'",
"+b = '\\''",
" c = '\\'",
"-c = '\\u0022'",
"-c = '\\U01234568'",
"+c = '",
"+'",
"+c = '\\u0000'",
"+c = '\\U01234567'",
" )"
],
"gitDir": "test/corpus/repos/go",
"shas": "4f3c51b12590caa5727917c59e8d1f278a8caf0b..4a1101ab82e3deed1b6aa0735ce012cd4256b639"
}
,{
"testCaseDescription": "go-rune-literals-delete-insert-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the 'a' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the ''0'' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the 'b' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the ''\\''' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the 'c' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the ''\\u0000'' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the 'c' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the ''\\U01234567'' variable in the main module"
}
]
},
"errors": {
"rune-literals.go": [
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' at line 2, column 1 - line 10, column 2 in the main module"
}
]
}
},
"filePaths": [
"rune-literals.go"
],
"patch": [
"diff --git a/rune-literals.go b/rune-literals.go",
"index 7ecf7d8..c9ecbf5 100644",
"--- a/rune-literals.go",
"+++ b/rune-literals.go",
"@@ -1,10 +1,2 @@",
" package main",
"-const (",
"-a = '0'",
"-b = '\\''",
"-c = '\\'",
"-c = '",
"-'",
"-c = '\\u0000'",
"-c = '\\U01234567'",
"-)",
"+"
],
"gitDir": "test/corpus/repos/go",
"shas": "4a1101ab82e3deed1b6aa0735ce012cd4256b639..463c133f27ef7d631486a53822db9699c1833cb7"
}
,{
"testCaseDescription": "go-rune-literals-teardown-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
3,
1
]
}
},
"summary": "Deleted the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"rune-literals.go"
],
"patch": [
"diff --git a/rune-literals.go b/rune-literals.go",
"index c9ecbf5..e69de29 100644",
"--- a/rune-literals.go",
"+++ b/rune-literals.go",
"@@ -1,2 +0,0 @@",
"-package main",
"-"
],
"gitDir": "test/corpus/repos/go",
"shas": "463c133f27ef7d631486a53822db9699c1833cb7..2141d3d0ce5959ff5dc451eef4b220a59f0ae5e3"
}]