Generate const or var according if it is a test, in Go code generated.