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

Function TestSepDetect_Tab

sepDector_test.go:25–37  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

23}
24
25func TestSepDetect_Tab(t *testing.T) {
26 sd := sepDetecor{}
27 lines := []string{
28 "Name\tAge\tCity",
29 "Alice\t30\tNYC",
30 "Bob\t25\tLA",
31 }
32
33 sep := sd.sepDetect(lines)
34 if sep != '\t' {
35 t.Errorf("Expected tab separator, got %c", sep)
36 }
37}
38
39func TestSepDetect_Pipe(t *testing.T) {
40 sd := sepDetecor{}

Callers

nothing calls this directly

Calls 1

sepDetectMethod · 0.95

Tested by

no test coverage detected