MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / TestInvokeDone

Function TestInvokeDone

pkg/controller/rtctrl/request_test.go:45–62  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

43}
44
45func TestInvokeDone(t *testing.T) {
46 rtParams := &NewRuntimeParameters{
47 RuntimeID: "bb",
48 ConcurrentMode: false,
49 StreamMode: false,
50 WaitRuntimeAliveTimeout: 3,
51 Resource: &api.Resource{},
52 }
53 rt := NewRuntimeInfo(rtParams)
54 req := NewRequestInfo("aa", rt)
55 nowT := time.Now()
56 startT := nowT.UnixNano()
57 endT := nowT.Add(time.Millisecond + 100*time.Microsecond).UnixNano()
58 req.SetInitTime(startT, endT)
59 //req.store =
60 req.InvokeDone()
61 t.Logf("reqinfo = %+v", req)
62}

Callers

nothing calls this directly

Calls 5

SetInitTimeMethod · 0.95
InvokeDoneMethod · 0.95
NewRuntimeInfoFunction · 0.85
NewRequestInfoFunction · 0.85
AddMethod · 0.45

Tested by

no test coverage detected