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

Function TestGridString

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

Source from the content-addressed store, hash-verified

123}
124
125func TestGridString(t *testing.T) {
126 tabulate := Create([][]string{STRING_ARRAY, STRING_ARRAY, EMPTY_ARRAY})
127 tabulate.SetHeaders(HEADERS)
128 tabulate.SetEmptyString("None")
129 assert.Equal(t, tabulate.Render("grid"), readTable("_tests/grid_strings"))
130}
131
132func TestGridMixed(t *testing.T) {
133 tabulate := Create([][]interface{}{MIXED_ARRAY, MIXED_ARRAY})

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…