MCPcopy Create free account
hub / github.com/cgrates/fsock / mockFreeSWITCH

Function mockFreeSWITCH

fsock_test.go:997–1059  ·  view source on GitHub ↗

mockFreeSWITCH acts as a FreeSWITCH server. It goes through auth and then executes fn. The fn parameter can be customized based on the needs of the test. Returns the address of the listener.

(t *testing.T, fn func(net.Conn))

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 2

CloseMethod · 0.65
WriteMethod · 0.45

Tested by

no test coverage detected