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

Function TestSetFormat

tabulate_test.go:17–22  ·  view source on GitHub ↗

Test Setters

(t *testing.T)

Source from the content-addressed store, hash-verified

15
16// Test Setters
17func TestSetFormat(t *testing.T) {
18 tabulate := Create([][]float64{FLOAT_ARRAY, FLOAT_ARRAY, FLOAT_ARRAY})
19 tabulate.SetHeaders(HEADERS)
20 tabulate.SetFloatFormat('f')
21 assert.Equal(t, tabulate.Render("grid"), readTable("_tests/table_float"))
22}
23
24// Test Align Left, Align Right, Align Center
25func TestPads(t *testing.T) {

Callers

nothing calls this directly

Calls 5

CreateFunction · 0.85
readTableFunction · 0.85
SetHeadersMethod · 0.80
SetFloatFormatMethod · 0.80
RenderMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…