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

Extend parse send args tests #899

Merged
merged 23 commits into from
Apr 8, 2024

Conversation

zancas
Copy link
Member

@zancas zancas commented Apr 6, 2024

Here are more tests for the parse_send_args helper utility.

There are a few improvements:

  • more error variants
  • trim against from-single-arg int parsing

@fluidvanadium
Copy link
Contributor

noticed, but deferring to oscar

Copy link
Contributor

@Oscar-Pepper Oscar-Pepper left a comment

Choose a reason for hiding this comment

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

Good changes and really like the tests of each error variant. I have some change requests / questions

zingolib/src/commands/utils.rs Outdated Show resolved Hide resolved
zingolib/src/commands/utils.rs Outdated Show resolved Hide resolved
zingolib/src/commands/utils.rs Outdated Show resolved Hide resolved
zingolib/src/commands/utils.rs Show resolved Hide resolved
zingolib/src/commands/utils.rs Outdated Show resolved Hide resolved
zingolib/src/commands/utils.rs Outdated Show resolved Hide resolved
zingolib/src/commands/utils.rs Outdated Show resolved Hide resolved
zingolib/src/commands/utils.rs Outdated Show resolved Hide resolved
zingolib/src/commands/error.rs Outdated Show resolved Hide resolved
zingolib/src/commands/error.rs Outdated Show resolved Hide resolved
zancas and others added 12 commits April 8, 2024 12:28
Co-authored-by: oscar-pepper <109323234+Oscar-Pepper@users.noreply.github.com>
Signed-off-by: Za Wilcox <zancas@zingolabs.org>
Co-authored-by: oscar-pepper <109323234+Oscar-Pepper@users.noreply.github.com>
Signed-off-by: Za Wilcox <zancas@zingolabs.org>
Co-authored-by: oscar-pepper <109323234+Oscar-Pepper@users.noreply.github.com>
Signed-off-by: Za Wilcox <zancas@zingolabs.org>
@zancas zancas requested a review from Oscar-Pepper April 8, 2024 19:23
@zancas zancas dismissed Oscar-Pepper’s stale review April 8, 2024 19:46

I think I have addressed all requested issues.

Copy link
Contributor

@Oscar-Pepper Oscar-Pepper left a comment

Choose a reason for hiding this comment

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

splendid

@Oscar-Pepper Oscar-Pepper merged commit e3d36aa into zingolabs:dev Apr 8, 2024
17 checks passed
@zancas zancas deleted the extend_parse_send_args_tests branch May 30, 2024 18:12
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.

3 participants