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

245 lines
6.8 KiB
JSON
Raw Normal View History

2016-11-02 18:07:06 +03:00
[{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-rune-literals-setup-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
2016-12-02 00:03:52 +03:00
"insert": {
"start": [
2016-12-02 00:03:52 +03:00
1,
1
],
"end": [
2016-12-02 00:03:52 +03:00
3,
1
2016-11-11 00:19:53 +03:00
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Added the 'main' module"
}
]
},
2016-12-02 00:03:52 +03:00
"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",
2016-12-07 21:26:31 +03:00
"shas": "78dcc663e1dee08c956d8fc9c62e3f55a4d8c110..fe07b9a3bf0366c9da1136a6533b442173e4437e"
2016-12-02 00:03:52 +03:00
}
,{
"testCaseDescription": "go-rune-literals-insert-test",
"expectedResult": {
"changes": {},
"errors": {
"rune-literals.go": [
{
"span": {
2016-11-11 00:19:53 +03:00
"insert": {
"start": [
2016-12-02 00:03:52 +03:00
2,
1
],
"end": [
2016-12-02 00:03:52 +03:00
10,
2
]
}
},
2016-12-02 00:03:52 +03:00
"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"
2016-11-02 18:07:06 +03:00
}
]
}
2016-11-02 18:07:06 +03:00
},
"filePaths": [
"rune-literals.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/rune-literals.go b/rune-literals.go",
2016-12-02 00:03:52 +03:00
"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",
2016-12-07 21:26:31 +03:00
"shas": "fe07b9a3bf0366c9da1136a6533b442173e4437e..0f17d608d19bf5da50ea0075d625e08faabd0c4f"
2016-12-02 00:03:52 +03:00
}
,{
"testCaseDescription": "go-rune-literals-replacement-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"rune-literals.go"
],
"patch": [
"diff --git a/rune-literals.go b/rune-literals.go",
"index 7ecf7d8..cee94e2 100644",
2016-11-11 00:19:53 +03:00
"--- a/rune-literals.go",
"+++ b/rune-literals.go",
2016-12-02 00:03:52 +03:00
"@@ -1,10 +1,10 @@",
" package main",
2016-11-11 00:19:53 +03:00
" const (",
"-a = '0'",
"-b = '\\''",
2016-12-02 00:03:52 +03:00
"+a = '1'",
"+b = '",
"+''",
"+c = '\\u0011'",
" c = '\\'",
2016-11-11 00:19:53 +03:00
"-c = '",
"-'",
"-c = '\\u0000'",
"-c = '\\U01234567'",
2016-12-02 00:03:52 +03:00
"+c = '\\u0022'",
"+c = '\\U01234568'",
" )"
2016-11-11 00:19:53 +03:00
],
2016-11-02 18:07:06 +03:00
"gitDir": "test/corpus/repos/go",
2016-12-07 21:26:31 +03:00
"shas": "0f17d608d19bf5da50ea0075d625e08faabd0c4f..2354d3a9079243d82a5087087057129127bab3e9"
2016-11-02 18:07:06 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-rune-literals-delete-replacement-test",
2016-11-02 18:07:06 +03:00
"expectedResult": {
2016-12-02 00:03:52 +03:00
"changes": {},
"errors": {}
},
"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",
2016-12-07 21:26:31 +03:00
"shas": "2354d3a9079243d82a5087087057129127bab3e9..661a72ee9019c4e1bbb97c65487b0bd7da0e1b45"
2016-12-02 00:03:52 +03:00
}
,{
"testCaseDescription": "go-rune-literals-delete-insert-test",
"expectedResult": {
"changes": {},
"errors": {
2016-11-02 18:07:06 +03:00
"rune-literals.go": [
{
"span": {
"delete": {
"start": [
2016-12-02 00:03:52 +03:00
2,
1
],
"end": [
2016-12-02 00:03:52 +03:00
10,
2
]
}
},
2016-12-02 00:03:52 +03:00
"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"
}
]
2016-12-02 00:03:52 +03:00
}
},
"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",
2016-12-07 21:26:31 +03:00
"shas": "661a72ee9019c4e1bbb97c65487b0bd7da0e1b45..f11afcbd65d6ff8c295017efa60b94dd61b52af3"
2016-12-02 00:03:52 +03:00
}
,{
"testCaseDescription": "go-rune-literals-teardown-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
1,
1
],
"end": [
2016-12-02 00:03:52 +03:00
3,
1
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Deleted the 'main' module"
2016-11-02 18:07:06 +03:00
}
]
2016-12-02 00:03:52 +03:00
},
"errors": {}
2016-11-02 18:07:06 +03:00
},
"filePaths": [
"rune-literals.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/rune-literals.go b/rune-literals.go",
2016-12-02 00:03:52 +03:00
"index c9ecbf5..e69de29 100644",
2016-11-11 00:19:53 +03:00
"--- a/rune-literals.go",
"+++ b/rune-literals.go",
2016-12-02 00:03:52 +03:00
"@@ -1,2 +0,0 @@",
"-package main",
"-"
2016-11-11 00:19:53 +03:00
],
2016-11-02 18:07:06 +03:00
"gitDir": "test/corpus/repos/go",
2016-12-07 21:26:31 +03:00
"shas": "f11afcbd65d6ff8c295017efa60b94dd61b52af3..e28876b3dcee4628412710c24ad66bc0b8aa40e9"
2016-11-02 18:07:06 +03:00
}]