MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / TestValueQueue_RPC

Function TestValueQueue_RPC

internal/monitor/value_queue_test.go:15–33  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

13)
14
15func TestValueQueue_RPC(t *testing.T) {
16 if !testutils.IsSingleTesting() {
17 return
18 }
19
20 rpcClient, err := rpc.SharedRPC()
21 if err != nil {
22 t.Fatal(err)
23 }
24 _, err = rpcClient.NodeValueRPC.CreateNodeValue(rpcClient.Context(), &pb.CreateNodeValueRequest{})
25 if err != nil {
26 statusErr, ok := status.FromError(err)
27 if ok {
28 logs.Println(statusErr.Code())
29 }
30 t.Fatal(err)
31 }
32 t.Log("ok")
33}

Callers

nothing calls this directly

Calls 5

IsSingleTestingFunction · 0.92
SharedRPCFunction · 0.92
ContextMethod · 0.80
LogMethod · 0.80
CodeMethod · 0.65

Tested by

no test coverage detected