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

Reorg and unit tests for endpoints pkg #41

Merged
merged 3 commits into from
Feb 19, 2019
Merged

Conversation

nitishm
Copy link
Owner

@nitishm nitishm commented Feb 19, 2019

  • Removed mutex locks from task package. Not needed since each task is
    handled in isolation.
  • Changed Cancel() function signature to not returns an AttackResponse
  • Dispatcher returns AttackResponse objects from IAttackStore instead of
    creating it each time, from the task.
  • Added unit tests for 100% coverage in endpoints package.
  • Broke out ITask interface into Getters and Actions.

- Removed mutex locks from task package. Not needed since each task is
handled in isolation.
- Changed Cancel() function signature to not returns an AttackResponse
- Dispatcher returns AttackResponse objects from IAttackStore instead of
creating it each time, from the task.
- Added unit tests for 100% coverage in endpoints package.
- Broke out ITask interface into Getters and Actions.
internal/dispatcher/task.go Outdated Show resolved Hide resolved
internal/dispatcher/task.go Outdated Show resolved Hide resolved
@nitishm nitishm merged commit 48b6cb5 into master Feb 19, 2019
@nitishm
Copy link
Owner Author

nitishm commented Feb 19, 2019

Added more unit tests for #13

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.

2 participants