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" : [
2016-11-02 22:25:50 +03:00
{
"span" : {
2016-12-02 00:03:52 +03:00
"insert" : {
2016-11-02 22:25:50 +03:00
"start" : [
2016-12-02 00:03:52 +03:00
1 ,
2016-11-02 22:25:50 +03:00
1
] ,
"end" : [
2016-12-02 00:03:52 +03:00
3 ,
2016-11-02 22:25:50 +03:00
1
2016-11-11 00:19:53 +03:00
]
}
} ,
2016-12-02 00:03:52 +03:00
"summary" : "Added the 'main' module"
2016-11-02 23:14:44 +03:00
}
]
} ,
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" ,
"shas" : "f0afd7f09e1a0b288b00fe672286c43ab9b21ef4..c9a7430664652023c207147aab6c69fbe6a70b3e"
}
, {
"testCaseDescription" : "go-rune-literals-insert-test" ,
"expectedResult" : {
"changes" : { } ,
2016-11-02 23:14:44 +03:00
"errors" : {
"rune-literals.go" : [
2016-11-02 22:25:50 +03:00
{
"span" : {
2016-11-11 00:19:53 +03:00
"insert" : {
2016-11-02 22:25:50 +03:00
"start" : [
2016-12-02 00:03:52 +03:00
2 ,
2016-11-02 22:25:50 +03:00
1
] ,
"end" : [
2016-12-02 00:03:52 +03:00
10 ,
2016-11-02 22:25:50 +03:00
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 23:14:44 +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" ,
"shas" : "c9a7430664652023c207147aab6c69fbe6a70b3e..f03cba2df20d08bfce06c1113d432aa3f6d595d3"
}
, {
"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-02 00:03:52 +03:00
"shas" : "f03cba2df20d08bfce06c1113d432aa3f6d595d3..53b8b81d51bff5020d36e993c455e6f54898f61c"
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" ,
"shas" : "53b8b81d51bff5020d36e993c455e6f54898f61c..c555683cb039b12e236a91cdbfd2a7839b255e77"
}
, {
"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 ,
2016-11-02 22:25:50 +03:00
1
] ,
"end" : [
2016-12-02 00:03:52 +03:00
10 ,
2016-11-02 22:25:50 +03:00
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-11-02 23:14:44 +03:00
}
]
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" ,
"shas" : "c555683cb039b12e236a91cdbfd2a7839b255e77..42e81d51a18a740b69f3e1b4b26d75c84e7c8cbe"
}
, {
"testCaseDescription" : "go-rune-literals-teardown-test" ,
"expectedResult" : {
"changes" : {
2016-11-02 23:14:44 +03:00
"rune-literals.go" : [
2016-11-02 22:25:50 +03:00
{
"span" : {
"delete" : {
"start" : [
2016-11-11 00:19:53 +03:00
1 ,
2016-11-02 22:25:50 +03:00
1
] ,
"end" : [
2016-12-02 00:03:52 +03:00
3 ,
1
2016-11-02 22:25:50 +03:00
]
}
} ,
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-02 00:03:52 +03:00
"shas" : "42e81d51a18a740b69f3e1b4b26d75c84e7c8cbe..08f6651cadd919c4daa0e50e7692fd79fd4f174a"
2016-11-02 18:07:06 +03:00
} ]