Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

names: NewActionTag must panic if the action tag is not valid #17

Merged
merged 2 commits into from Jul 21, 2014
Merged

names: NewActionTag must panic if the action tag is not valid #17

merged 2 commits into from Jul 21, 2014

Conversation

davecheney
Copy link
Contributor

The contract of the NewXXXTag methods is they should return a valid names.Tag impl or they should panic. As these functions are called almost exclusively in tests to create fixtures, this black and white pattern is appropriate.

This PR changes names.NewActionTag to the expected behavior and adds tests to assert this same.

The contract of the NewXXXTag methods is they should return a valid names.Tag impl or they should panic. As these functions are called almost exclusively in tests to create fixtures, this black and white pattern is appropriate.

This PR changes names.NewActionTag to the expected behavior and adds tests to assert this same.
@howbazaar
Copy link
Contributor

LGTM

howbazaar added a commit that referenced this pull request Jul 21, 2014
names: NewActionTag must panic if the action tag is not valid
@howbazaar howbazaar merged commit dcbff55 into juju:master Jul 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants