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

377 lines
12 KiB
JSON
Raw Normal View History

2016-11-02 18:07:06 +03:00
[{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-imaginary-literals-setup-test",
2016-11-02 18:07:06 +03:00
"expectedResult": {
"changes": {
"imaginary-literals.go": [
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 18:07:06 +03:00
1
],
"end": [
2016-12-02 00:03:52 +03:00
6,
1
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Added the 'main' module"
2016-11-02 18:07:06 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"imaginary-literals.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
2017-01-17 23:26:07 +03:00
"index e69de29b..79058077 100644",
2016-11-11 00:19:53 +03:00
"--- a/imaginary-literals.go",
"+++ b/imaginary-literals.go",
2016-12-02 00:03:52 +03:00
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
2016-11-11 00:19:53 +03:00
],
2016-11-02 18:07:06 +03:00
"gitDir": "test/corpus/repos/go",
2017-01-18 21:23:54 +03:00
"shas": "03178122dd15aa885cdb41437e13e912c2b91c96..38a182fee50bfeaa60287707d8b41f195968ad80"
2016-11-02 18:07:06 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-imaginary-literals-insert-test",
2016-11-02 18:07:06 +03:00
"expectedResult": {
2016-12-07 23:41:28 +03:00
"changes": {
"imaginary-literals.go": [
{
"span": {
"insert": {
"start": [
2017-01-10 23:09:09 +03:00
5,
2016-12-07 23:41:28 +03:00
1
],
"end": [
2017-01-10 23:09:09 +03:00
5,
8
2016-12-07 23:41:28 +03:00
]
}
},
2017-01-10 23:09:09 +03:00
"summary": "Added the 'a' var assignment in the main function of the 'main' module"
2016-12-07 23:41:28 +03:00
},
{
"span": {
"insert": {
"start": [
2017-01-10 23:09:09 +03:00
6,
2016-12-07 23:41:28 +03:00
1
],
"end": [
2017-01-10 23:09:09 +03:00
6,
13
2016-12-07 23:41:28 +03:00
]
}
},
2017-01-10 23:09:09 +03:00
"summary": "Added the 'b' var assignment in the main function of the 'main' module"
2016-12-07 23:41:28 +03:00
}
]
},
2016-11-02 18:07:06 +03:00
"errors": {}
},
"filePaths": [
"imaginary-literals.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
2017-01-17 23:26:07 +03:00
"index 79058077..25a97daf 100644",
2016-11-11 00:19:53 +03:00
"--- a/imaginary-literals.go",
"+++ b/imaginary-literals.go",
2016-12-02 00:03:52 +03:00
"@@ -1,5 +1,8 @@",
" package main",
" ",
" func main() {",
"-",
2016-11-11 00:19:53 +03:00
"+const (",
"+a = 01i",
"+b = 1.e+100i",
"+)",
2016-12-02 00:03:52 +03:00
" }"
2016-11-11 00:19:53 +03:00
],
2016-11-02 18:07:06 +03:00
"gitDir": "test/corpus/repos/go",
2017-01-18 21:23:54 +03:00
"shas": "38a182fee50bfeaa60287707d8b41f195968ad80..e5e1986e6bb5c8827a6257d066cddef003057dd0"
2016-11-02 18:07:06 +03:00
}
,{
"testCaseDescription": "go-imaginary-literals-replacement-test",
"expectedResult": {
2016-12-07 23:41:28 +03:00
"changes": {
"imaginary-literals.go": [
{
"span": {
"replace": [
{
"start": [
5,
5
],
"end": [
5,
8
]
},
{
"start": [
5,
5
],
"end": [
5,
8
]
}
]
},
2017-01-10 23:09:09 +03:00
"summary": "Replaced the '01i' imaginary_literal with the '02i' imaginary_literal in the a var assignment of the 'main' function"
2016-12-07 23:41:28 +03:00
},
{
"span": {
"replace": [
{
"start": [
6,
5
],
"end": [
6,
13
]
},
{
"start": [
6,
5
],
"end": [
6,
13
]
}
]
},
2017-01-10 23:09:09 +03:00
"summary": "Replaced the '1.e+100i' imaginary_literal with the '1.e+103i' imaginary_literal in the b var assignment of the 'main' function"
2016-12-07 23:41:28 +03:00
}
]
},
2016-11-02 18:07:06 +03:00
"errors": {}
},
"filePaths": [
"imaginary-literals.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
2017-01-17 23:26:07 +03:00
"index 25a97daf..151a5338 100644",
2016-11-11 00:19:53 +03:00
"--- a/imaginary-literals.go",
"+++ b/imaginary-literals.go",
2016-12-02 00:03:52 +03:00
"@@ -2,7 +2,7 @@ package main",
" ",
" func main() {",
2016-11-11 00:19:53 +03:00
" const (",
"-a = 01i",
"-b = 1.e+100i",
"+a = 02i",
"+b = 1.e+103i",
" )",
2016-12-02 00:03:52 +03:00
" }"
2016-11-11 00:19:53 +03:00
],
2016-11-02 18:07:06 +03:00
"gitDir": "test/corpus/repos/go",
2017-01-18 21:23:54 +03:00
"shas": "e5e1986e6bb5c8827a6257d066cddef003057dd0..fd1fbf1346b6ccce7c0be7b6d374a15ce7108aa2"
2016-11-02 18:07:06 +03:00
}
,{
"testCaseDescription": "go-imaginary-literals-delete-replacement-test",
"expectedResult": {
2016-12-07 23:41:28 +03:00
"changes": {
"imaginary-literals.go": [
{
"span": {
"replace": [
{
"start": [
5,
5
],
"end": [
5,
8
]
},
{
"start": [
5,
5
],
"end": [
5,
8
]
}
]
},
2017-01-10 23:09:09 +03:00
"summary": "Replaced the '02i' imaginary_literal with the '01i' imaginary_literal in the a var assignment of the 'main' function"
2016-12-07 23:41:28 +03:00
},
{
"span": {
"replace": [
{
"start": [
6,
5
],
"end": [
6,
13
]
},
{
"start": [
6,
5
],
"end": [
6,
13
]
}
]
},
2017-01-10 23:09:09 +03:00
"summary": "Replaced the '1.e+103i' imaginary_literal with the '1.e+100i' imaginary_literal in the b var assignment of the 'main' function"
2016-12-07 23:41:28 +03:00
}
]
},
2016-11-02 18:07:06 +03:00
"errors": {}
},
"filePaths": [
"imaginary-literals.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
2017-01-17 23:26:07 +03:00
"index 151a5338..25a97daf 100644",
2016-11-11 00:19:53 +03:00
"--- a/imaginary-literals.go",
"+++ b/imaginary-literals.go",
2016-12-02 00:03:52 +03:00
"@@ -2,7 +2,7 @@ package main",
" ",
" func main() {",
2016-11-11 00:19:53 +03:00
" const (",
"-a = 02i",
"-b = 1.e+103i",
2016-12-02 00:03:52 +03:00
"+a = 01i",
"+b = 1.e+100i",
2016-11-11 00:19:53 +03:00
" )",
2016-12-02 00:03:52 +03:00
" }"
2016-11-11 00:19:53 +03:00
],
2016-11-02 18:07:06 +03:00
"gitDir": "test/corpus/repos/go",
2017-01-18 21:23:54 +03:00
"shas": "fd1fbf1346b6ccce7c0be7b6d374a15ce7108aa2..afed26122f2e10d1e84b3a743ae4503e3697ecf1"
2016-11-02 18:07:06 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-imaginary-literals-delete-insert-test",
2016-11-02 18:07:06 +03:00
"expectedResult": {
2016-12-07 23:41:28 +03:00
"changes": {
"imaginary-literals.go": [
{
"span": {
"delete": {
"start": [
2017-01-10 23:09:09 +03:00
5,
2016-12-07 23:41:28 +03:00
1
],
"end": [
2017-01-10 23:09:09 +03:00
5,
8
2016-12-07 23:41:28 +03:00
]
}
},
2017-01-10 23:09:09 +03:00
"summary": "Deleted the 'a' var assignment in the main function of the 'main' module"
2016-12-07 23:41:28 +03:00
},
{
"span": {
"delete": {
"start": [
2017-01-10 23:09:09 +03:00
6,
2016-12-07 23:41:28 +03:00
1
],
"end": [
2017-01-10 23:09:09 +03:00
6,
13
2016-12-07 23:41:28 +03:00
]
}
},
2017-01-10 23:09:09 +03:00
"summary": "Deleted the 'b' var assignment in the main function of the 'main' module"
2016-12-07 23:41:28 +03:00
}
]
},
2016-11-02 18:07:06 +03:00
"errors": {}
},
"filePaths": [
"imaginary-literals.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
2017-01-17 23:26:07 +03:00
"index 25a97daf..79058077 100644",
2016-11-11 00:19:53 +03:00
"--- a/imaginary-literals.go",
"+++ b/imaginary-literals.go",
2016-12-02 00:03:52 +03:00
"@@ -1,8 +1,5 @@",
" package main",
" ",
" func main() {",
"-const (",
2016-11-11 00:19:53 +03:00
"-a = 01i",
"-b = 1.e+100i",
"-)",
2016-12-02 00:03:52 +03:00
"+",
" }"
2016-11-11 00:19:53 +03:00
],
2016-11-02 18:07:06 +03:00
"gitDir": "test/corpus/repos/go",
2017-01-18 21:23:54 +03:00
"shas": "afed26122f2e10d1e84b3a743ae4503e3697ecf1..a6c277df634090415f165bd11da2c0d6e5160ed3"
2016-11-02 18:07:06 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-imaginary-literals-teardown-test",
2016-11-02 18:07:06 +03:00
"expectedResult": {
"changes": {
"imaginary-literals.go": [
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 18:07:06 +03:00
1
],
"end": [
2016-12-02 00:03:52 +03:00
6,
1
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Deleted the 'main' module"
2016-11-02 18:07:06 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"imaginary-literals.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
2017-01-17 23:26:07 +03:00
"index 79058077..e69de29b 100644",
2016-11-11 00:19:53 +03:00
"--- a/imaginary-literals.go",
"+++ b/imaginary-literals.go",
2016-12-02 00:03:52 +03:00
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
2016-11-11 00:19:53 +03:00
],
2016-11-02 18:07:06 +03:00
"gitDir": "test/corpus/repos/go",
2017-01-18 21:23:54 +03:00
"shas": "a6c277df634090415f165bd11da2c0d6e5160ed3..ef1ba5e3f4f7beea225774e61c0ed1394cc9e463"
2016-11-02 18:07:06 +03:00
}]