mercredi 21 juin 2017

Will go test code only referenced in test files be complied into the binary?

I am wondering what code will be compiled into the go binary. In the binary I currently have several flavours of test code: - foo_test.go in package foo_test - foo_internal_test.go in package foo - testutil.go in package testutil that provides test utility functions

No code is actually referenced in the actual binary code. The testutil functions are important in the test files.

If they are compiled into the binary, how much of a problem is this?

Aucun commentaire:

Enregistrer un commentaire