MCPcopy Create free account
hub / github.com/driangle/taskmd / TestTableWriter_EmptyTable

Function TestTableWriter_EmptyTable

apps/cli/internal/cli/tablewriter_test.go:89–98  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

87}
88
89func TestTableWriter_EmptyTable(t *testing.T) {
90 tw := NewTableWriter()
91
92 var buf bytes.Buffer
93 tw.Flush(&buf)
94
95 if buf.String() != "" {
96 t.Errorf("expected empty output for empty table, got %q", buf.String())
97 }
98}
99
100func TestTableWriter_SeparatorSizing(t *testing.T) {
101 tw := NewTableWriter()

Callers

nothing calls this directly

Calls 2

FlushMethod · 0.95
NewTableWriterFunction · 0.85

Tested by

no test coverage detected