Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.

Conversation

@sandlerben
Copy link
Contributor

Added osWrapper struct to visualization.go and main.go to wrap Go os and exec functions. This enables much more test mocking.

@sandlerben
Copy link
Contributor Author

Increased coverage 9% 😎

@sandlerben
Copy link
Contributor Author

r @sectioneight

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may want to check errors here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If os.Getwd() fails then runPerlScript is going to propagate the error when it also calls os.Getwd(). Hence, this test will fail even if I don't check errors here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, i just mean it's bad form to discard errors, and you would want to fail fast here to indicate that something is messed up with your test environment

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense

@ascandella
Copy link
Contributor

looks good

sandlerben added a commit that referenced this pull request Jul 28, 2015
@sandlerben sandlerben merged commit 3cae69b into master Jul 28, 2015
@sandlerben sandlerben deleted the test-almost-everything branch July 28, 2015 22:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants