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
2016-11-10 16:19:53 -05:00

561 lines
17 KiB
JSON

[{
"testCaseDescription": "go-imaginary-literals-insert-test",
"expectedResult": {
"changes": {
"imaginary-literals.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
4,
2
]
}
},
"summary": "Added the 'a' variable"
},
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
4,
2
]
}
},
"summary": "Added the 'b' variable"
}
]
},
"errors": {}
},
"filePaths": [
"imaginary-literals.go"
],
"patch": [
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
"index e69de29..aca2d55 100644",
"--- a/imaginary-literals.go",
"+++ b/imaginary-literals.go",
"@@ -0,0 +1,4 @@",
"+const (",
"+a = 01i",
"+b = 1.e+100i",
"+)"
],
"gitDir": "test/corpus/repos/go",
"shas": "6761a7543f7002279b3e1d53f388c0b6408e11ac..70a8f336ad4cf76dbf55d755ee3b4ff94b77dc5b"
}
,{
"testCaseDescription": "go-imaginary-literals-replacement-insert-test",
"expectedResult": {
"changes": {
"imaginary-literals.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
4,
2
]
}
},
"summary": "Added the 'a' variable"
},
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
4,
2
]
}
},
"summary": "Added the 'b' variable"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
8,
2
]
}
},
"summary": "Added the 'a' variable"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
8,
2
]
}
},
"summary": "Added the 'b' variable"
}
]
},
"errors": {}
},
"filePaths": [
"imaginary-literals.go"
],
"patch": [
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
"index aca2d55..6983988 100644",
"--- a/imaginary-literals.go",
"+++ b/imaginary-literals.go",
"@@ -1,4 +1,12 @@",
" const (",
"+a = 02i",
"+b = 1.e+103i",
"+)",
"+const (",
"+a = 01i",
"+b = 1.e+100i",
"+)",
"+const (",
" a = 01i",
" b = 1.e+100i",
" )"
],
"gitDir": "test/corpus/repos/go",
"shas": "70a8f336ad4cf76dbf55d755ee3b4ff94b77dc5b..7003c23d83606920ba4dbc36a6fa8aa3fb23d254"
}
,{
"testCaseDescription": "go-imaginary-literals-delete-insert-test",
"expectedResult": {
"changes": {
"imaginary-literals.go": [
{
"span": {
"replace": [
{
"start": [
2,
5
],
"end": [
2,
8
]
},
{
"start": [
2,
5
],
"end": [
2,
8
]
}
]
},
"summary": "Replaced the '02i' imaginary_literal with the '01i' imaginary_literal in the a variable"
},
{
"span": {
"replace": [
{
"start": [
3,
5
],
"end": [
3,
13
]
},
{
"start": [
3,
5
],
"end": [
3,
13
]
}
]
},
"summary": "Replaced the '1.e+103i' imaginary_literal with the '1.e+100i' imaginary_literal in the b variable"
}
]
},
"errors": {}
},
"filePaths": [
"imaginary-literals.go"
],
"patch": [
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
"index 6983988..a7e36a5 100644",
"--- a/imaginary-literals.go",
"+++ b/imaginary-literals.go",
"@@ -1,6 +1,6 @@",
" const (",
"-a = 02i",
"-b = 1.e+103i",
"+a = 01i",
"+b = 1.e+100i",
" )",
" const (",
" a = 01i"
],
"gitDir": "test/corpus/repos/go",
"shas": "7003c23d83606920ba4dbc36a6fa8aa3fb23d254..9c8a6f328131e0ab48ab9cccdf3a8a0ab164e527"
}
,{
"testCaseDescription": "go-imaginary-literals-replacement-test",
"expectedResult": {
"changes": {
"imaginary-literals.go": [
{
"span": {
"replace": [
{
"start": [
2,
5
],
"end": [
2,
8
]
},
{
"start": [
2,
5
],
"end": [
2,
8
]
}
]
},
"summary": "Replaced the '01i' imaginary_literal with the '02i' imaginary_literal in the a variable"
},
{
"span": {
"replace": [
{
"start": [
3,
5
],
"end": [
3,
13
]
},
{
"start": [
3,
5
],
"end": [
3,
13
]
}
]
},
"summary": "Replaced the '1.e+100i' imaginary_literal with the '1.e+103i' imaginary_literal in the b variable"
}
]
},
"errors": {}
},
"filePaths": [
"imaginary-literals.go"
],
"patch": [
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
"index a7e36a5..6983988 100644",
"--- a/imaginary-literals.go",
"+++ b/imaginary-literals.go",
"@@ -1,6 +1,6 @@",
" const (",
"-a = 01i",
"-b = 1.e+100i",
"+a = 02i",
"+b = 1.e+103i",
" )",
" const (",
" a = 01i"
],
"gitDir": "test/corpus/repos/go",
"shas": "9c8a6f328131e0ab48ab9cccdf3a8a0ab164e527..06c027b6920c1d1e7f4b44cd6527798c933581c4"
}
,{
"testCaseDescription": "go-imaginary-literals-delete-replacement-test",
"expectedResult": {
"changes": {
"imaginary-literals.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted the 'a' variable"
},
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted the 'b' variable"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
8,
2
]
}
},
"summary": "Deleted the 'a' variable"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
8,
2
]
}
},
"summary": "Deleted the 'b' variable"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
8,
2
]
}
},
"summary": "Added the 'a' variable"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
8,
2
]
}
},
"summary": "Added the 'b' variable"
}
]
},
"errors": {}
},
"filePaths": [
"imaginary-literals.go"
],
"patch": [
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
"index 6983988..02cff8d 100644",
"--- a/imaginary-literals.go",
"+++ b/imaginary-literals.go",
"@@ -1,12 +1,8 @@",
" const (",
"-a = 02i",
"-b = 1.e+103i",
"-)",
"-const (",
" a = 01i",
" b = 1.e+100i",
" )",
" const (",
"-a = 01i",
"-b = 1.e+100i",
"+a = 02i",
"+b = 1.e+103i",
" )"
],
"gitDir": "test/corpus/repos/go",
"shas": "06c027b6920c1d1e7f4b44cd6527798c933581c4..b6de01e92b11ca25862dcd7d798b72f9a01aa1c4"
}
,{
"testCaseDescription": "go-imaginary-literals-delete-test",
"expectedResult": {
"changes": {
"imaginary-literals.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted the 'a' variable"
},
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted the 'b' variable"
}
]
},
"errors": {}
},
"filePaths": [
"imaginary-literals.go"
],
"patch": [
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
"index 02cff8d..6d8ec55 100644",
"--- a/imaginary-literals.go",
"+++ b/imaginary-literals.go",
"@@ -1,8 +1,4 @@",
" const (",
"-a = 01i",
"-b = 1.e+100i",
"-)",
"-const (",
" a = 02i",
" b = 1.e+103i",
" )"
],
"gitDir": "test/corpus/repos/go",
"shas": "b6de01e92b11ca25862dcd7d798b72f9a01aa1c4..8af14aaa12876d71baf9d1580b9de3a0b4769e2a"
}
,{
"testCaseDescription": "go-imaginary-literals-delete-rest-test",
"expectedResult": {
"changes": {
"imaginary-literals.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted the 'a' variable"
},
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted the 'b' variable"
}
]
},
"errors": {}
},
"filePaths": [
"imaginary-literals.go"
],
"patch": [
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
"index 6d8ec55..e69de29 100644",
"--- a/imaginary-literals.go",
"+++ b/imaginary-literals.go",
"@@ -1,4 +0,0 @@",
"-const (",
"-a = 02i",
"-b = 1.e+103i",
"-)"
],
"gitDir": "test/corpus/repos/go",
"shas": "8af14aaa12876d71baf9d1580b9de3a0b4769e2a..3f18376b34b25deb3740a62df8c40ad667cfef4a"
}]