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/send-statements.json
2016-11-10 16:19:53 -05:00

522 lines
16 KiB
JSON

[{
"testCaseDescription": "go-send-statements-insert-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
4
]
}
},
"summary": "Added 'foo' identifier"
},
{
"span": {
"insert": {
"start": [
1,
8
],
"end": [
1,
9
]
}
},
"summary": "Added '5'"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
"patch": [
"diff --git a/send-statements.go b/send-statements.go",
"index e69de29..9df974c 100644",
"--- a/send-statements.go",
"+++ b/send-statements.go",
"@@ -0,0 +1 @@",
"+foo <- 5"
],
"gitDir": "test/corpus/repos/go",
"shas": "1afdfc9d2ffbe4b43ec47892c4583237f382efd2..714795be33defefb56b589bf1984b5013bfd3d0f"
}
,{
"testCaseDescription": "go-send-statements-replacement-insert-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
4
]
}
},
"summary": "Added 'bar' identifier"
},
{
"span": {
"insert": {
"start": [
1,
8
],
"end": [
1,
9
]
}
},
"summary": "Added '6'"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
4
]
}
},
"summary": "Added 'foo' identifier"
},
{
"span": {
"insert": {
"start": [
2,
8
],
"end": [
2,
9
]
}
},
"summary": "Added '5'"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
"patch": [
"diff --git a/send-statements.go b/send-statements.go",
"index 9df974c..de76cee 100644",
"--- a/send-statements.go",
"+++ b/send-statements.go",
"@@ -1 +1,3 @@",
"+bar <- 6",
"+foo <- 5",
" foo <- 5"
],
"gitDir": "test/corpus/repos/go",
"shas": "714795be33defefb56b589bf1984b5013bfd3d0f..d67f3c65395ec2d583d2838eb62e633160dc5bb0"
}
,{
"testCaseDescription": "go-send-statements-delete-insert-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
4
]
},
{
"start": [
1,
1
],
"end": [
1,
4
]
}
]
},
"summary": "Replaced the 'bar' identifier with the 'foo' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
8
],
"end": [
1,
9
]
},
{
"start": [
1,
8
],
"end": [
1,
9
]
}
]
},
"summary": "Replaced '6' with '5'"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
"patch": [
"diff --git a/send-statements.go b/send-statements.go",
"index de76cee..d487575 100644",
"--- a/send-statements.go",
"+++ b/send-statements.go",
"@@ -1,3 +1,3 @@",
"-bar <- 6",
"+foo <- 5",
" foo <- 5",
" foo <- 5"
],
"gitDir": "test/corpus/repos/go",
"shas": "d67f3c65395ec2d583d2838eb62e633160dc5bb0..f3edb65315d77ba6c2c56272b231534fb537d8cc"
}
,{
"testCaseDescription": "go-send-statements-replacement-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
4
]
},
{
"start": [
1,
1
],
"end": [
1,
4
]
}
]
},
"summary": "Replaced the 'foo' identifier with the 'bar' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
8
],
"end": [
1,
9
]
},
{
"start": [
1,
8
],
"end": [
1,
9
]
}
]
},
"summary": "Replaced '5' with '6'"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
"patch": [
"diff --git a/send-statements.go b/send-statements.go",
"index d487575..de76cee 100644",
"--- a/send-statements.go",
"+++ b/send-statements.go",
"@@ -1,3 +1,3 @@",
"-foo <- 5",
"+bar <- 6",
" foo <- 5",
" foo <- 5"
],
"gitDir": "test/corpus/repos/go",
"shas": "f3edb65315d77ba6c2c56272b231534fb537d8cc..0bab01c74332f89cf225e90aec13c47f76180a4a"
}
,{
"testCaseDescription": "go-send-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
4
]
}
},
"summary": "Deleted 'bar' identifier"
},
{
"span": {
"delete": {
"start": [
1,
8
],
"end": [
1,
9
]
}
},
"summary": "Deleted '6'"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
4
]
}
},
"summary": "Deleted 'foo' identifier"
},
{
"span": {
"delete": {
"start": [
2,
8
],
"end": [
2,
9
]
}
},
"summary": "Deleted '5'"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
4
]
}
},
"summary": "Added 'bar' identifier"
},
{
"span": {
"insert": {
"start": [
2,
8
],
"end": [
2,
9
]
}
},
"summary": "Added '6'"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
"patch": [
"diff --git a/send-statements.go b/send-statements.go",
"index de76cee..65a1c23 100644",
"--- a/send-statements.go",
"+++ b/send-statements.go",
"@@ -1,3 +1,2 @@",
"-bar <- 6",
"-foo <- 5",
" foo <- 5",
"+bar <- 6"
],
"gitDir": "test/corpus/repos/go",
"shas": "0bab01c74332f89cf225e90aec13c47f76180a4a..659323e1c3b72c8aeb375fe6afca8af9afd91380"
}
,{
"testCaseDescription": "go-send-statements-delete-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
4
]
}
},
"summary": "Deleted 'foo' identifier"
},
{
"span": {
"delete": {
"start": [
1,
8
],
"end": [
1,
9
]
}
},
"summary": "Deleted '5'"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
"patch": [
"diff --git a/send-statements.go b/send-statements.go",
"index 65a1c23..bab29cb 100644",
"--- a/send-statements.go",
"+++ b/send-statements.go",
"@@ -1,2 +1 @@",
"-foo <- 5",
" bar <- 6"
],
"gitDir": "test/corpus/repos/go",
"shas": "659323e1c3b72c8aeb375fe6afca8af9afd91380..659afeebaae01516ea3532538f0ea665e2823020"
}
,{
"testCaseDescription": "go-send-statements-delete-rest-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
4
]
}
},
"summary": "Deleted 'bar' identifier"
},
{
"span": {
"delete": {
"start": [
1,
8
],
"end": [
1,
9
]
}
},
"summary": "Deleted '6'"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
"patch": [
"diff --git a/send-statements.go b/send-statements.go",
"index bab29cb..e69de29 100644",
"--- a/send-statements.go",
"+++ b/send-statements.go",
"@@ -1 +0,0 @@",
"-bar <- 6"
],
"gitDir": "test/corpus/repos/go",
"shas": "659afeebaae01516ea3532538f0ea665e2823020..acf23921d6e89772dac98a78ba280e58c2429050"
}]