Created
September 18, 2014 10:46
-
-
Save gsalgado/3a3f9a4ffe9480d503fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> 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