MCPcopy
hub / github.com/olric-data/olric / TestDMapService

Function TestDMapService

internal/dmap/service_test.go:24–36  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

22)
23
24func TestDMapService(t *testing.T) {
25 cluster := testcluster.New(NewService)
26 defer cluster.Shutdown()
27 s, ok := cluster.AddMember(nil).(*Service)
28 if !ok {
29 t.Fatal("AddMember returned a different service.Service implementation")
30 }
31
32 err := s.Shutdown(context.Background())
33 if err != nil {
34 t.Fatalf("Expected nil. Got: %v", err)
35 }
36}

Callers

nothing calls this directly

Calls 3

NewFunction · 0.92
AddMemberMethod · 0.80
ShutdownMethod · 0.65

Tested by

no test coverage detected