MCPcopy Create free account
hub / github.com/codechenx/FastTableViewer / TestLoadFileToBuffer_TSV

Function TestLoadFileToBuffer_TSV

io_test.go:95–106  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

93}
94
95func TestLoadFileToBuffer_TSV(t *testing.T) {
96 b := createNewBuffer()
97 err := loadFileToBuffer("./data/test/tab_separated.tsv", b)
98 if err != nil {
99 t.Skipf("TSV test file not found: %v", err)
100 return
101 }
102
103 if b.sep != '\t' {
104 t.Errorf("Expected tab separator, got %q", b.sep)
105 }
106}
107
108func TestLoadFileToBuffer_EdgeCases(t *testing.T) {
109 t.Run("Empty file", func(t *testing.T) {

Callers

nothing calls this directly

Calls 2

createNewBufferFunction · 0.85
loadFileToBufferFunction · 0.85

Tested by

no test coverage detected