Skip to content

Instantly share code, notes, and snippets.

@gsalgado
Created September 18, 2014 10:46
Show Gist options
  • Save gsalgado/3a3f9a4ffe9480d503fb to your computer and use it in GitHub Desktop.
Save gsalgado/3a3f9a4ffe9480d503fb to your computer and use it in GitHub Desktop.
==> internal_test.go <==
package main
import "testing"
func TestInternalBit(t *testing.T) {
main_test.TstHelper()
}
==> pkg_test.go <==
package main_test
import "fmt"
func TstHelper() {
fmt.Println("I'm a helper")
}
salgado@delgadito/tmp/pkg $ go test -v ./
# _/tmp/pkg
./internal_test.go:6: undefined: main_test
FAIL _/tmp/pkg [build failed]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment