MCPcopy
hub / github.com/tinygo-org/tinygo / TestInterfaceLowering

Function TestInterfaceLowering

transform/interface-lowering_test.go:10–25  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestInterfaceLowering(t *testing.T) {
11 t.Parallel()
12 testTransform(t, "testdata/interface", func(mod llvm.Module) {
13 err := transform.LowerInterfaces(mod, defaultTestConfig)
14 if err != nil {
15 t.Error(err)
16 }
17
18 po := llvm.NewPassBuilderOptions()
19 defer po.Dispose()
20 err = mod.RunPasses("globaldce", llvm.TargetMachine{}, po)
21 if err != nil {
22 t.Error("failed to run passes:", err)
23 }
24 })
25}

Callers

nothing calls this directly

Calls 4

LowerInterfacesFunction · 0.92
testTransformFunction · 0.85
ParallelMethod · 0.80
ErrorMethod · 0.65

Tested by

no test coverage detected