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

Function TestRuntimeDelete

pkg/controller/rtctrl/runtime_dispatcher_test.go:264–275  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

262}
263
264func 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
277type benchmarkRuntimeArgs struct {
278 Concurrency uint64

Callers

nothing calls this directly

Calls 7

initRuntimeListFunction · 0.85
DelRuntimeMethod · 0.80
RuntimeListMethod · 0.65
StringMethod · 0.65
GetRuntimeMethod · 0.65
EqualMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected