diff options
Diffstat (limited to 'services/gitdiff/csv_test.go')
-rw-r--r-- | services/gitdiff/csv_test.go | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/services/gitdiff/csv_test.go b/services/gitdiff/csv_test.go index 90d24d1c80..2c15b42d91 100644 --- a/services/gitdiff/csv_test.go +++ b/services/gitdiff/csv_test.go @@ -16,7 +16,7 @@ import ( ) func TestCSVDiff(t *testing.T) { - var cases = []struct { + cases := []struct { diff string base string head string @@ -35,7 +35,8 @@ func TestCSVDiff(t *testing.T) { a,a`, cells: [][]TableDiffCellType{ {TableDiffCellAdd, TableDiffCellAdd}, - {TableDiffCellAdd, TableDiffCellAdd}}, + {TableDiffCellAdd, TableDiffCellAdd}, + }, }, // case 1 - adding 1 row at end { @@ -53,7 +54,8 @@ a,a`, a,a b,b`, cells: [][]TableDiffCellType{ - {TableDiffCellUnchanged, TableDiffCellUnchanged}, {TableDiffCellUnchanged, TableDiffCellUnchanged}, + {TableDiffCellUnchanged, TableDiffCellUnchanged}, + {TableDiffCellUnchanged, TableDiffCellUnchanged}, {TableDiffCellAdd, TableDiffCellAdd}, }, }, @@ -72,7 +74,8 @@ b,b`, head: `col1,col2 b,b`, cells: [][]TableDiffCellType{ - {TableDiffCellUnchanged, TableDiffCellUnchanged}, {TableDiffCellDel, TableDiffCellDel}, + {TableDiffCellUnchanged, TableDiffCellUnchanged}, + {TableDiffCellDel, TableDiffCellDel}, {TableDiffCellUnchanged, TableDiffCellUnchanged}, }, }, |