github.com/0xKiwi/rules_go@v0.24.3/tests/legacy/cgo_pure/cgo_pure_test.go (about)

     1  package cgo_pure_test
     2  
     3  import (
     4  	"fmt"
     5  	"testing"
     6  
     7  	"github.com/bazelbuild/rules_go/tests/cgo_pure"
     8  )
     9  
    10  var Expect = ""
    11  
    12  func TestValue(t *testing.T) {
    13  	got := fmt.Sprintf("%d", cgo_pure.Value)
    14  	if got != Expect {
    15  		t.Errorf("got %q; want %q", got, Expect)
    16  	}
    17  }