fix: use correctly formatted comments
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
decentral1se 2023-02-08 11:28:38 +01:00
parent fdf4854b0c
commit f28af5e42f
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410

View File

@ -13,7 +13,7 @@ var TestLine = []string{"1", "2"}
var TestGroup = [][]string{{"1", "2", "3"}, {"a", "teohunteohu", "c", "d"}, {"☺", "☹"}} var TestGroup = [][]string{{"1", "2", "3"}, {"a", "teohunteohu", "c", "d"}, {"☺", "☹"}}
var TestKeys = []string{"key0", "key1", "key2"} var TestKeys = []string{"key0", "key1", "key2"}
/// test creation // test creation
func TestNewTable(t *testing.T) { func TestNewTable(t *testing.T) {
var b bytes.Buffer var b bytes.Buffer
tbl := NewJSONTable(&b) tbl := NewJSONTable(&b)
@ -22,7 +22,7 @@ func TestNewTable(t *testing.T) {
} }
} }
/// test adding things // test adding things
func TestTableAdd(t *testing.T) { func TestTableAdd(t *testing.T) {
var b bytes.Buffer var b bytes.Buffer
tbl := NewJSONTable(&b) tbl := NewJSONTable(&b)
@ -39,7 +39,7 @@ func TestTableAdd(t *testing.T) {
} }
} }
/// test JSON output is parsable // test JSON output is parsable
func TestJsonParsable(t *testing.T) { func TestJsonParsable(t *testing.T) {
var b bytes.Buffer var b bytes.Buffer
tbl := NewJSONTable(&b) tbl := NewJSONTable(&b)
@ -58,7 +58,7 @@ func TestJsonParsable(t *testing.T) {
} }
} }
/// test identical commands to a tablewriter and jsontable produce the same rendered output // test identical commands to a tablewriter and jsontable produce the same rendered output
func TestTableWriter(t *testing.T) { func TestTableWriter(t *testing.T) {
var bjson bytes.Buffer var bjson bytes.Buffer
var btable bytes.Buffer var btable bytes.Buffer