(t *testing.T)
| 24 | ) |
| 25 | |
| 26 | func TestRequestInfo(t *testing.T) { |
| 27 | rtParams := &NewRuntimeParameters{ |
| 28 | RuntimeID: "bb", |
| 29 | ConcurrentMode: false, |
| 30 | StreamMode: false, |
| 31 | WaitRuntimeAliveTimeout: 3, |
| 32 | Resource: &api.Resource{}, |
| 33 | } |
| 34 | rt := NewRuntimeInfo(rtParams) |
| 35 | req := NewRequestInfo("aa", rt) |
| 36 | req.SetInitTime(1, 2) |
| 37 | if req.InitStartTimeMS != 1 || |
| 38 | req.InitDoneTimeMS != 2 { |
| 39 | t.Errorf("init time error: [%d-%d]", req.InitStartTimeMS, req.InitDoneTimeMS) |
| 40 | } |
| 41 | |
| 42 | req.InvokeResult(StatusSuccess, "result") |
| 43 | } |
| 44 | |
| 45 | func TestInvokeDone(t *testing.T) { |
| 46 | rtParams := &NewRuntimeParameters{ |
nothing calls this directly
no test coverage detected