MCPcopy
hub / github.com/cortesi/devd / TestFormatURL

Function TestFormatURL

server_test.go:26–33  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

24}
25
26func TestFormatURL(t *testing.T) {
27 for i, tt := range formatURLTests {
28 url := formatURL(tt.tls, tt.addr, tt.port)
29 if url != tt.output {
30 t.Errorf("Test %d, expected \"%s\" got \"%s\"", i, tt.output, url)
31 }
32 }
33}
34
35func TestPickPort(t *testing.T) {
36 _, err := pickPort("127.0.0.1", 8000, 10000, true)

Callers

nothing calls this directly

Calls 1

formatURLFunction · 0.85

Tested by

no test coverage detected