You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These functions are privates and declared in the file math/v7c/clockface/clockface_test.go which is in package clockface.
These functions are called in math/v7c/clockface/clockface_acceptance_test.go which is in package clockface_test. We can't call them as they are privates functions from clockface package.
The problem is : we don't want these functions to be public in clockface package.
As go developper, how do you resolve properly this issue ? Do you create a common package for test utility functions, used by clockface_test and clockface package ?
The text was updated successfully, but these errors were encountered:
Ultimately either this logic has to be changed for the code to work or the book's text will have to be updated to state that these functions should copy pasted in the acceptance test file.
Hello, at v7c step in chapter math, some functions references are broken.
clockface
.clockface_test
. We can't call them as they are privates functions from clockface package.The problem is : we don't want these functions to be public in clockface package.
As go developper, how do you resolve properly this issue ? Do you create a common package for test utility functions, used by clockface_test and clockface package ?
The text was updated successfully, but these errors were encountered: