(t *testing.T)
| 262 | } |
| 263 | |
| 264 | func TestRuntimeDelete(t *testing.T) { |
| 265 | rtMap := initRuntimeList(1) |
| 266 | rtMapList := rtMap.RuntimeList() |
| 267 | t.Logf("runtime list len %d", len(rtMapList)) |
| 268 | id := rtMapList[0].RuntimeID |
| 269 | rtMap.DelRuntime(id) |
| 270 | t.Logf("runtime list %s", rtMap.String()) |
| 271 | info, err := rtMap.GetRuntime(id) |
| 272 | assert.NotEqual(t, info, nil) |
| 273 | assert.Equal(t, err.Error(), RuntimeNotExist{RuntimeID: id}.Error()) |
| 274 | |
| 275 | } |
| 276 | |
| 277 | type benchmarkRuntimeArgs struct { |
| 278 | Concurrency uint64 |
nothing calls this directly
no test coverage detected