github.com/0xKiwi/rules_go@v0.24.3/tests/core/cgo/dylib_test.go (about)

     1  package dylib
     2  
     3  import "testing"
     4  
     5  func TestFoo(t *testing.T) {
     6  	want := 42
     7  	if got := Foo(); got != want {
     8  		t.Errorf("got %d ; want %d", got, want)
     9  	}
    10  }