MCPcopy Create free account
hub / github.com/blobcache/blobcache / TestService

Function TestService

src/bcremote/bcremote_test.go:18–34  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

16)
17
18func TestService(t *testing.T) {
19 t.Parallel()
20 blobcachetests.ServiceAPI(t, func(t testing.TB) blobcache.Service {
21 if strings.Contains(t.Name(), "Vault/Tx") {
22 t.Skip("vault volumes cannot be created on remote nodes")
23 }
24
25 server := bclocal.NewTestService(t)
26 _, privateKey, err := ed25519.GenerateKey(nil)
27 require.NoError(t, err)
28 client, err := Dial(privateKey, blobcachetests.Endpoint(t, server))
29 require.NoError(t, err)
30 ctx := testutil.Context(t)
31 client.AwaitReady(ctx)
32 return client
33 })
34}

Callers

nothing calls this directly

Calls 6

ServiceAPIFunction · 0.92
NewTestServiceFunction · 0.92
EndpointFunction · 0.92
ContextFunction · 0.92
DialFunction · 0.85
AwaitReadyMethod · 0.80

Tested by

no test coverage detected