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
In the C:\_wrk\inclusive-dev-tools\woke\pkg\ignore\ignore_test.go file, run-time detection of the host OS is used to permit the tests to run/pass cross-platform as shown in the following excerpt:
Long-term maintainability of the test could be improved by expressing the test paths not as string-literals differing only by their path-separator character but instead leveraging os.PathSeparator (from the os package) and filepath (from the path/filepath package). See https://stackoverflow.com/questions/9371031/how-do-i-create-crossplatform-file-paths-in-go for guidance.
Acceptance Criteria
ignore_test.go updated to use the dynamically-interpreted path-separator character in lieu of explicit "/" or "\"
The text was updated successfully, but these errors were encountered:
Link to original issue on forked repo: inclusive-dev-tools#11
Problem Statement
In the
C:\_wrk\inclusive-dev-tools\woke\pkg\ignore\ignore_test.go
file, run-time detection of the host OS is used to permit the tests to run/pass cross-platform as shown in the following excerpt:Long-term maintainability of the test could be improved by expressing the test paths not as string-literals differing only by their path-separator character but instead leveraging
os.PathSeparator
(from theos
package) andfilepath
(from thepath/filepath
package). See https://stackoverflow.com/questions/9371031/how-do-i-create-crossplatform-file-paths-in-go for guidance.Acceptance Criteria
ignore_test.go
updated to use the dynamically-interpreted path-separator character in lieu of explicit "/" or "\"The text was updated successfully, but these errors were encountered: