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

Function TestSimpleString

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

Source from the content-addressed store, hash-verified

79}
80
81func TestSimpleString(t *testing.T) {
82 tabulate := Create([][]string{STRING_ARRAY, STRING_ARRAY, EMPTY_ARRAY})
83 tabulate.SetHeaders(HEADERS)
84 tabulate.SetEmptyString("None")
85 assert.Equal(t, tabulate.Render("simple"), readTable("_tests/simple_strings"))
86}
87
88func TestSimpleMixed(t *testing.T) {
89 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…