MCPcopy Create free account
hub / github.com/bndr/gotabulate / TestEmptyString

Function TestEmptyString

tabulate_test.go:48–53  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

46}
47
48func TestEmptyString(t *testing.T) {
49 tabulate := Create([][]string{STRING_ARRAY, EMPTY_ARRAY})
50 tabulate.SetHeaders(HEADERS)
51 tabulate.SetEmptyString("None")
52 assert.Equal(t, tabulate.Render("grid"), readTable("_tests/test_empty_element"))
53}
54
55func TestMaxColWidth(t *testing.T) {
56 // TODO

Callers

nothing calls this directly

Calls 5

CreateFunction · 0.85
readTableFunction · 0.85
SetHeadersMethod · 0.80
SetEmptyStringMethod · 0.80
RenderMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…