Commit 8a3e80f7 authored by Eric Myhre's avatar Eric Myhre

Discard inlinability check.

This was only useful as a design research expedition.

It's here in history if you want to refer to it.
parent ce94db1f
// Compile with '-gcflags -S' and grep the assembly for `"".Test`.
// You'll find that both methods produce identical bodies modulo line numbers.
package inlinability
import (
"testing"
ipld "github.com/ipld/go-ipld-prime"
basicnode "github.com/ipld/go-ipld-prime/node/basic"
)
var sink ipld.NodeBuilder
func TestStructReference(t *testing.T) {
nb := basicnode.Style__String{}.NewBuilder()
sink = nb
}
func TestVarReference(t *testing.T) {
nb := basicnode.Style.String.NewBuilder()
sink = nb
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment