Skip to content

Conversation

@brettcannon
Copy link
Member

No description provided.

@brettcannon brettcannon requested a review from lmazuel March 22, 2017 21:45
@codecov-io
Copy link

codecov-io commented Mar 22, 2017

Codecov Report

Merging #22 into master will increase coverage by 0.25%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #22      +/-   ##
==========================================
+ Coverage   88.52%   88.78%   +0.25%     
==========================================
  Files          10       10              
  Lines        1229     1239      +10     
==========================================
+ Hits         1088     1100      +12     
+ Misses        141      139       -2
Impacted Files Coverage Δ
msrest/paging.py 89.58% <100%> (+8%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a999154...0e9ca0e. Read the comment docs.

self.next_link = ""
self.current_page = []
self._current_page_iter_index = 0
self._derserializer = Deserializer(classes)
Copy link
Member

Choose a reason for hiding this comment

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

Could you take this opputunity to fix the typo in the "deRserializer" attribute? :)

msrest/paging.py Outdated
self.reset()
self.next_link = url
return self.next()
return list(self)
Copy link
Member

Choose a reason for hiding this comment

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

This will not work if there is a page3. Current code will return page 2 + page 3. Yes, I miss this unittest... :(

Copy link
Member Author

Choose a reason for hiding this comment

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

Why wouldn't it work? This is simply exhausting the iterator so if a "page 3" would have come through the iterator then this will as well.

And are you adding a test for this?

Copy link
Member

Choose a reason for hiding this comment

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

I added a test in master

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed in the latest commit.

@lmazuel lmazuel merged commit 173b60b into Azure:master Mar 30, 2017
@brettcannon brettcannon deleted the paged-iter branch March 30, 2017 23:59
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