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

Function TestSepDetect_Pipe

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

Source from the content-addressed store, hash-verified

37}
38
39func TestSepDetect_Pipe(t *testing.T) {
40 sd := sepDetecor{}
41 lines := []string{
42 "Name|Age|City",
43 "Alice|30|NYC",
44 "Bob|25|LA",
45 }
46
47 sep := sd.sepDetect(lines)
48 if sep != '|' {
49 t.Errorf("Expected pipe separator, got %c", sep)
50 }
51}
52
53func TestSepDetect_Semicolon(t *testing.T) {
54 sd := sepDetecor{}

Callers

nothing calls this directly

Calls 1

sepDetectMethod · 0.95

Tested by

no test coverage detected