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

Function TestSepDetect_Comma

sepDector_test.go:11–23  ·  view source on GitHub ↗

======================================== Separator Detection Tests ========================================

(t *testing.T)

Source from the content-addressed store, hash-verified

9// ========================================
10
11func TestSepDetect_Comma(t *testing.T) {
12 sd := sepDetecor{}
13 lines := []string{
14 "Name,Age,City",
15 "Alice,30,NYC",
16 "Bob,25,LA",
17 }
18
19 sep := sd.sepDetect(lines)
20 if sep != ',' {
21 t.Errorf("Expected comma separator, got %c", sep)
22 }
23}
24
25func TestSepDetect_Tab(t *testing.T) {
26 sd := sepDetecor{}

Callers

nothing calls this directly

Calls 1

sepDetectMethod · 0.95

Tested by

no test coverage detected