experimental: FunctionListenerFactory can decide whether to intercept function start/finish (#505)

Signed-off-by: Anuraag Agrawal <anuraaga@gmail.com>
Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
Anuraag Agrawal
2022-04-26 16:28:17 +09:00
committed by GitHub
parent 0a39438138
commit 633fc41706
17 changed files with 363 additions and 33 deletions

View File

@@ -713,7 +713,7 @@ func TestModule_buildFunctionInstances(t *testing.T) {
}
// Note: This only returns module-defined functions, not imported ones. That's why the index starts with 1, not 0.
actual := m.buildFunctions("counter")
actual := m.buildFunctions("counter", nil)
expectedNames := []string{"counter.[1]", "counter.two", "counter.[3]", "counter.four", "counter.five"}
for i, f := range actual {
require.Equal(t, expectedNames[i], f.DebugName)