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

Function TestOptimizeStringToBytes

transform/rtcalls_test.go:10–16  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestOptimizeStringToBytes(t *testing.T) {
11 t.Parallel()
12 testTransform(t, "testdata/stringtobytes", func(mod llvm.Module) {
13 // Run optimization pass.
14 transform.OptimizeStringToBytes(mod)
15 })
16}
17
18func TestOptimizeStringEqual(t *testing.T) {
19 t.Parallel()

Callers

nothing calls this directly

Calls 3

OptimizeStringToBytesFunction · 0.92
testTransformFunction · 0.85
ParallelMethod · 0.80

Tested by

no test coverage detected