Skip to content

Conversation

@OddCoincidence
Copy link
Contributor

Based on #645 to avoid conflicts.

@codecov-io
Copy link

codecov-io commented Mar 10, 2019

Codecov Report

Merging #646 into master will increase coverage by 0.27%.
The diff coverage is 31.7%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #646      +/-   ##
==========================================
+ Coverage   40.81%   41.08%   +0.27%     
==========================================
  Files          76       77       +1     
  Lines       17345    17525     +180     
  Branches     4474     4548      +74     
==========================================
+ Hits         7079     7201     +122     
- Misses       8366     8404      +38     
- Partials     1900     1920      +20
Impacted Files Coverage Δ
vm/src/obj/objmemory.rs 23.07% <0%> (-6.93%) ⬇️
vm/src/obj/objslice.rs 30.23% <10%> (+1.11%) ⬆️
vm/src/obj/objframe.rs 30.23% <100%> (-0.72%) ⬇️
vm/src/obj/objlist.rs 37.65% <100%> (+0.79%) ⬆️
vm/src/obj/objset.rs 48.72% <100%> (+0.09%) ⬆️
vm/src/obj/objbytes.rs 40.44% <100%> (+0.33%) ⬆️
vm/src/obj/objrange.rs 36.18% <18.75%> (+1.32%) ⬆️
vm/src/obj/objtuple.rs 26.59% <20%> (+0.37%) ⬆️
vm/src/frame.rs 46.52% <33.33%> (+0.1%) ⬆️
vm/src/obj/objstr.rs 34.85% <33.33%> (-0.38%) ⬇️
... and 24 more

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 010969f...f6765cf. Read the comment docs.

};

_ => Err(vm.new_type_error("range indices must be integer or slice".to_string())),
return Ok(PyObject::new(
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of if-with-a-return, do not use return, but the implement else. This gives less different return paths from the code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, I went too fast here and got sloppy 😄

@windelbouwman windelbouwman merged commit eb19eaa into master Mar 10, 2019
@OddCoincidence OddCoincidence deleted the joey/memoryview-slice branch April 9, 2019 20:35
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.

4 participants