MCPcopy
hub / github.com/benbjohnson/litestream / testSocketPath

Function testSocketPath

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

Source from the content-addressed store, hash-verified

21var testSocketCounter uint64
22
23func testSocketPath(t *testing.T) string {
24 t.Helper()
25 n := atomic.AddUint64(&testSocketCounter, 1)
26 path := fmt.Sprintf("/tmp/ls-test-%d.sock", n)
27 t.Cleanup(func() { os.Remove(path) })
28 return path
29}
30
31func TestServer_HandleInfo(t *testing.T) {
32 db, sqldb := testingutil.MustOpenDBs(t)

Callers 8

TestServer_HandleInfoFunction · 0.70
TestServer_HandleListFunction · 0.70
TestServer_HandleStartFunction · 0.70
TestServer_HandleStopFunction · 0.70
TestServer_HandleSyncFunction · 0.70

Calls 1

CleanupMethod · 0.45

Tested by

no test coverage detected