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

Function TestGetRuntime

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

Source from the content-addressed store, hash-verified

74}
75
76func TestGetRuntime(t *testing.T) {
77 rtMap := initRuntimeList(1)
78 id := "runtime-id-001"
79 rtMap.rtMap.Store(id, "xxx")
80 _, err := rtMap.GetRuntime(id)
81 assert.Equal(t, RuntimeInfoError{id}.Error(), err.Error())
82}
83
84func TestFindWarmRuntime(t *testing.T) {
85 rtMap := initRuntimeList(3)

Callers

nothing calls this directly

Calls 4

initRuntimeListFunction · 0.85
GetRuntimeMethod · 0.65
EqualMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected