Skip to content

Instantly share code, notes, and snippets.

@juanpabloaj
Created March 1, 2019 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanpabloaj/d34b80135bd2d4a8c2d4bff8177701fe to your computer and use it in GitHub Desktop.
Save juanpabloaj/d34b80135bd2d4a8c2d4bff8177701fe to your computer and use it in GitHub Desktop.
go test user_test.go user.go
package user
import "fmt"
func ShowUsers() int {
return 0
}
func main() {
fmt.Println("vim-go")
}
package user
import "testing"
func TestHelloWorld(t *testing.T) {
if ShowUsers() != 0 {
t.Errorf("something wrong")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment