2016-10-18 21:49:45 +03:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"repoUrl": "https://github.com/joshvera/go.git",
|
|
|
|
"language": "go",
|
2016-11-01 19:48:15 +03:00
|
|
|
"fileExt": ".go",
|
2016-10-18 23:10:22 +03:00
|
|
|
"templateText": "package main\n",
|
2016-10-18 21:49:45 +03:00
|
|
|
"syntaxes": [
|
2016-11-01 23:33:43 +03:00
|
|
|
{
|
|
|
|
"syntax": "int-literal",
|
|
|
|
"repoFilePath": "int-literal.go",
|
|
|
|
"insert": "const (\na = 1, b = 2, c = 3\n)",
|
|
|
|
"testCaseFilePath": "test/corpus/diff-summaries/go/int-literal.json",
|
|
|
|
"replacement": "const (\na = 4, b = 5, c = 6\n)"
|
|
|
|
},
|
2016-10-18 21:49:45 +03:00
|
|
|
{
|
2016-10-18 21:52:48 +03:00
|
|
|
"syntax": "assignment",
|
|
|
|
"repoFilePath": "assignment.go",
|
2016-10-18 21:49:45 +03:00
|
|
|
"insert": "var foo int = 42",
|
2016-10-18 21:52:48 +03:00
|
|
|
"testCaseFilePath": "test/corpus/diff-summaries/go/assignment.json",
|
2016-10-18 21:49:45 +03:00
|
|
|
"replacement": "var bar string = \"hello\""
|
2016-11-01 01:22:10 +03:00
|
|
|
},
|
|
|
|
{
|
2016-11-01 19:48:15 +03:00
|
|
|
"syntax": "function-call",
|
2016-11-01 01:22:10 +03:00
|
|
|
"repoFilePath": "function-call.go",
|
|
|
|
"insert": "a()",
|
|
|
|
"testCaseFilePath": "test/corpus/diff-summaries/go/function-call.json",
|
|
|
|
"replacement": "b()"
|
2016-11-01 02:23:25 +03:00
|
|
|
},
|
2016-11-01 21:36:23 +03:00
|
|
|
{
|
|
|
|
"syntax": "function-literal",
|
|
|
|
"repoFilePath": "function-literal.go",
|
|
|
|
"insert": "const s1 = func(s string) (int, int) {\nreturn 1, 2\n}",
|
2016-11-01 23:33:43 +03:00
|
|
|
"testCaseFilePath": "test/corpus/diff-summaries/go/function-literal.json",
|
2016-11-01 21:36:23 +03:00
|
|
|
"replacement": "const s1 = func(b int) (string, string) {\nreturn 1, 2\n}"
|
|
|
|
},
|
2016-11-01 02:23:25 +03:00
|
|
|
{
|
2016-11-01 19:48:15 +03:00
|
|
|
"syntax": "const-declarations",
|
2016-11-01 02:23:25 +03:00
|
|
|
"repoFilePath": "const-declarations.go",
|
|
|
|
"insert": "const zero = 0",
|
|
|
|
"testCaseFilePath": "test/corpus/diff-summaries/go/const-declarations.json",
|
|
|
|
"replacement": "const one, two = 1, 2"
|
2016-10-18 21:49:45 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|