1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/go/single-line-function-declarations.json

728 lines
24 KiB
JSON
Raw Normal View History

2016-11-02 04:36:43 +03:00
[{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-single-line-function-declarations-insert-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"single-line-function-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 04:36:43 +03:00
18
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'f1' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
23
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'f2' function"
},
2016-11-02 04:36:43 +03:00
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 21:37:30 +03:00
24
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'f3' function"
2016-11-02 04:36:43 +03:00
}
]
2016-11-02 21:37:30 +03:00
},
"errors": {}
2016-11-02 04:36:43 +03:00
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"single-line-function-declarations.go"
2016-11-02 04:36:43 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/single-line-function-declarations.go b/single-line-function-declarations.go",
"index e69de29..3ac1720 100644",
"--- a/single-line-function-declarations.go",
"+++ b/single-line-function-declarations.go",
"@@ -0,0 +1,3 @@",
"+func f1() { a() }",
"+func f2() { a(); b() }",
"+func f3() { a(); b(); }"
],
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
"shas": "5a53a0e9ec4ba83226c98e754b16ee44b40f5d33..4f3a8a936ebca4f636df0970be213baea4cf7368"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-single-line-function-declarations-replacement-insert-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"single-line-function-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
18
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'g1' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
23
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'g2' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 21:37:30 +03:00
24
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'g3' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 21:37:30 +03:00
18
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'f1' function"
},
2016-11-02 04:36:43 +03:00
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 21:37:30 +03:00
23
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'f2' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
6,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
6,
2016-11-02 21:37:30 +03:00
24
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'f3' function"
2016-11-02 04:36:43 +03:00
}
]
2016-11-02 21:37:30 +03:00
},
"errors": {}
2016-11-02 04:36:43 +03:00
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"single-line-function-declarations.go"
2016-11-02 04:36:43 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/single-line-function-declarations.go b/single-line-function-declarations.go",
"index 3ac1720..39e0696 100644",
"--- a/single-line-function-declarations.go",
"+++ b/single-line-function-declarations.go",
"@@ -1,3 +1,9 @@",
"+func g1() { a() }",
"+func g2() { a(); b() }",
"+func g3() { a(); b(); }",
"+func f1() { a() }",
"+func f2() { a(); b() }",
"+func f3() { a(); b(); }",
" func f1() { a() }",
" func f2() { a(); b() }",
" func f3() { a(); b(); }"
],
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
"shas": "4f3a8a936ebca4f636df0970be213baea4cf7368..68465b85d048e3f0a113cc3f024dfa631b63bc9a"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-single-line-function-declarations-delete-insert-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"single-line-function-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"replace": [
{
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
6
2016-11-02 04:36:43 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
8
2016-11-02 04:36:43 +03:00
]
},
{
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
6
2016-11-02 04:36:43 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
8
2016-11-02 04:36:43 +03:00
]
}
]
},
2016-11-11 00:19:53 +03:00
"summary": "Replaced the 'g1' identifier with the 'f1' identifier in the f1 function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"replace": [
{
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
6
2016-11-02 04:36:43 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
8
2016-11-02 04:36:43 +03:00
]
},
{
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
6
2016-11-02 04:36:43 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
8
2016-11-02 04:36:43 +03:00
]
}
]
},
2016-11-11 00:19:53 +03:00
"summary": "Replaced the 'g2' identifier with the 'f2' identifier in the f2 function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"replace": [
{
"start": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 21:37:30 +03:00
6
2016-11-02 04:36:43 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 21:37:30 +03:00
8
2016-11-02 04:36:43 +03:00
]
},
{
"start": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 21:37:30 +03:00
6
2016-11-02 04:36:43 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 21:37:30 +03:00
8
2016-11-02 04:36:43 +03:00
]
}
]
},
2016-11-11 00:19:53 +03:00
"summary": "Replaced the 'g3' identifier with the 'f3' identifier in the f3 function"
2016-11-02 04:36:43 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"single-line-function-declarations.go"
2016-11-02 04:36:43 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/single-line-function-declarations.go b/single-line-function-declarations.go",
"index 39e0696..eec54a8 100644",
"--- a/single-line-function-declarations.go",
"+++ b/single-line-function-declarations.go",
"@@ -1,6 +1,6 @@",
"-func g1() { a() }",
"-func g2() { a(); b() }",
"-func g3() { a(); b(); }",
"+func f1() { a() }",
"+func f2() { a(); b() }",
"+func f3() { a(); b(); }",
" func f1() { a() }",
" func f2() { a(); b() }",
" func f3() { a(); b(); }"
],
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
"shas": "68465b85d048e3f0a113cc3f024dfa631b63bc9a..a4834677a085e883d825391c52a1e93001ad9bc9"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-single-line-function-declarations-replacement-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"single-line-function-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"replace": [
{
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
6
2016-11-02 04:36:43 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
8
2016-11-02 04:36:43 +03:00
]
},
{
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
6
2016-11-02 04:36:43 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
8
2016-11-02 04:36:43 +03:00
]
}
]
},
2016-11-11 00:19:53 +03:00
"summary": "Replaced the 'f1' identifier with the 'g1' identifier in the g1 function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"replace": [
{
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
6
2016-11-02 04:36:43 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
8
2016-11-02 04:36:43 +03:00
]
},
{
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
6
2016-11-02 04:36:43 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
8
2016-11-02 04:36:43 +03:00
]
}
]
},
2016-11-11 00:19:53 +03:00
"summary": "Replaced the 'f2' identifier with the 'g2' identifier in the g2 function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"replace": [
{
"start": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 21:37:30 +03:00
6
2016-11-02 04:36:43 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 21:37:30 +03:00
8
2016-11-02 04:36:43 +03:00
]
},
{
"start": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 21:37:30 +03:00
6
2016-11-02 04:36:43 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 21:37:30 +03:00
8
2016-11-02 04:36:43 +03:00
]
}
]
},
2016-11-11 00:19:53 +03:00
"summary": "Replaced the 'f3' identifier with the 'g3' identifier in the g3 function"
2016-11-02 04:36:43 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"single-line-function-declarations.go"
2016-11-02 04:36:43 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/single-line-function-declarations.go b/single-line-function-declarations.go",
"index eec54a8..39e0696 100644",
"--- a/single-line-function-declarations.go",
"+++ b/single-line-function-declarations.go",
"@@ -1,6 +1,6 @@",
"-func f1() { a() }",
"-func f2() { a(); b() }",
"-func f3() { a(); b(); }",
"+func g1() { a() }",
"+func g2() { a(); b() }",
"+func g3() { a(); b(); }",
" func f1() { a() }",
" func f2() { a(); b() }",
" func f3() { a(); b(); }"
],
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
"shas": "a4834677a085e883d825391c52a1e93001ad9bc9..0f564e353756699530c529cb7e0ef56de8cf58eb"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-single-line-function-declarations-delete-replacement-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"single-line-function-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
18
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'g1' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
23
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'g2' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 21:37:30 +03:00
24
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'g3' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 21:37:30 +03:00
18
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'f1' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
2016-11-02 21:37:30 +03:00
"delete": {
2016-11-02 04:36:43 +03:00
"start": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 21:37:30 +03:00
23
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'f2' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
2016-11-02 21:37:30 +03:00
"delete": {
2016-11-02 04:36:43 +03:00
"start": [
2016-11-11 00:19:53 +03:00
6,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
6,
2016-11-02 21:37:30 +03:00
24
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'f3' function"
},
2016-11-02 04:36:43 +03:00
{
"span": {
2016-11-02 21:37:30 +03:00
"insert": {
2016-11-02 04:36:43 +03:00
"start": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 21:37:30 +03:00
18
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'g1' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
2016-11-02 21:37:30 +03:00
"insert": {
2016-11-02 04:36:43 +03:00
"start": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 21:37:30 +03:00
23
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'g2' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
6,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
6,
2016-11-02 21:37:30 +03:00
24
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'g3' function"
2016-11-02 04:36:43 +03:00
}
]
2016-11-02 21:37:30 +03:00
},
"errors": {}
2016-11-02 04:36:43 +03:00
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"single-line-function-declarations.go"
2016-11-02 04:36:43 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/single-line-function-declarations.go b/single-line-function-declarations.go",
"index 39e0696..7fcb3a1 100644",
"--- a/single-line-function-declarations.go",
"+++ b/single-line-function-declarations.go",
"@@ -1,9 +1,6 @@",
"-func g1() { a() }",
"-func g2() { a(); b() }",
"-func g3() { a(); b(); }",
"-func f1() { a() }",
"-func f2() { a(); b() }",
"-func f3() { a(); b(); }",
" func f1() { a() }",
" func f2() { a(); b() }",
" func f3() { a(); b(); }",
"+func g1() { a() }",
"+func g2() { a(); b() }",
"+func g3() { a(); b(); }"
],
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
"shas": "0f564e353756699530c529cb7e0ef56de8cf58eb..3625191fd2bd7b52346b90f2b7ddf7a25116444e"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-single-line-function-declarations-delete-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"single-line-function-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 04:36:43 +03:00
18
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'f1' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
23
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'f2' function"
},
2016-11-02 04:36:43 +03:00
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 21:37:30 +03:00
24
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'f3' function"
2016-11-02 04:36:43 +03:00
}
]
2016-11-02 21:37:30 +03:00
},
"errors": {}
2016-11-02 04:36:43 +03:00
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"single-line-function-declarations.go"
2016-11-02 04:36:43 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/single-line-function-declarations.go b/single-line-function-declarations.go",
"index 7fcb3a1..ef4196f 100644",
"--- a/single-line-function-declarations.go",
"+++ b/single-line-function-declarations.go",
"@@ -1,6 +1,3 @@",
"-func f1() { a() }",
"-func f2() { a(); b() }",
"-func f3() { a(); b(); }",
" func g1() { a() }",
" func g2() { a(); b() }",
" func g3() { a(); b(); }"
],
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
"shas": "3625191fd2bd7b52346b90f2b7ddf7a25116444e..2716aa286571d7c511e9516a1fc58b464477514e"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-single-line-function-declarations-delete-rest-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"single-line-function-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
18
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'g1' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
23
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'g2' function"
},
2016-11-02 04:36:43 +03:00
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 21:37:30 +03:00
24
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'g3' function"
2016-11-02 04:36:43 +03:00
}
]
2016-11-02 21:37:30 +03:00
},
"errors": {}
2016-11-02 04:36:43 +03:00
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"single-line-function-declarations.go"
2016-11-02 04:36:43 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/single-line-function-declarations.go b/single-line-function-declarations.go",
"index ef4196f..e69de29 100644",
"--- a/single-line-function-declarations.go",
"+++ b/single-line-function-declarations.go",
"@@ -1,3 +0,0 @@",
"-func g1() { a() }",
"-func g2() { a(); b() }",
"-func g3() { a(); b(); }"
],
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
"shas": "2716aa286571d7c511e9516a1fc58b464477514e..6c01e74256ccf6bea1244116911ba37324142b0c"
2016-11-02 04:36:43 +03:00
}]