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

Refactor and improve TestRequest_URLInterpolate #326

Closed
gavv opened this issue Mar 3, 2023 · 1 comment
Closed

Refactor and improve TestRequest_URLInterpolate #326

gavv opened this issue Mar 3, 2023 · 1 comment
Labels
help wanted Contributions are welcome refactoring Refactoring task tests Improvements or additions to tests
Milestone

Comments

@gavv
Copy link
Owner

gavv commented Mar 3, 2023

TestRequest_URLInterpolate covers usage of WithPath and WithPathObject.

Two changes are needed:

  1. Split test into subtests, so that each request variable will be isolated and tested in its own subtest.

  2. Add subtests to cover the following cases (coveralls reports that they are uncovered):

    • WithPath: invalid interpol string (e.g. unmatched brace)
    • WithPath: key not found
    • WithPath: value is nil
    • WithPathObject: invalid interpol string
    • WithPathObject: key not found
    • WithPathObject: value is nil

Related: #328, #283

@gavv gavv added tests Improvements or additions to tests help wanted Contributions are welcome refactoring Refactoring task labels Mar 3, 2023
@gavv
Copy link
Owner Author

gavv commented Apr 3, 2023

Landed!

@gavv gavv closed this as completed Apr 3, 2023
@gavv gavv added this to the v2 milestone Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Contributions are welcome refactoring Refactoring task tests Improvements or additions to tests
Projects
None yet
Development

No branches or pull requests

1 participant