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

Unit tests #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

arnabcs17b006
Copy link
Contributor

Do not merge until previous ones are merged!

@arnabcs17b006
Copy link
Contributor Author

Do not merge until previous ones have been merged!

@arnabcs17b006 arnabcs17b006 force-pushed the unit_tests branch 4 times, most recently from dae0ece to d08437a Compare July 2, 2020 22:44
Cargo.toml Outdated Show resolved Hide resolved
src/driver/kvm.rs Outdated Show resolved Hide resolved
src/driver/kvm.rs Outdated Show resolved Hide resolved
src/driver/kvm.rs Outdated Show resolved Hide resolved
src/driver/kvm.rs Outdated Show resolved Hide resolved
@Wenzel
Copy link
Owner

Wenzel commented Aug 19, 2020

@arnabcs17b006 same question here ?

@arnabcs17b006
Copy link
Contributor Author

arnabcs17b006 commented Aug 19, 2020 via email

@Wenzel
Copy link
Owner

Wenzel commented Aug 19, 2020

Then I think you need a rebase too

@arnabcs17b006 arnabcs17b006 force-pushed the unit_tests branch 3 times, most recently from ae797c1 to 819f58e Compare August 21, 2020 07:39
@rageagainsthepc
Copy link
Collaborator

You should not change anything in the existing tests. They are fine as there are right now. Even worse, your changes to them are causing runtime errors.

@rageagainsthepc
Copy link
Collaborator

Looks like you have not addressed any comments from my previous review.

@codecov-commenter
Copy link

codecov-commenter commented Aug 21, 2020

Codecov Report

Merging #82 into master will increase coverage by 52.35%.
The diff coverage is 91.58%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master      #82       +/-   ##
===========================================
+ Coverage   16.73%   69.09%   +52.35%     
===========================================
  Files           5        5               
  Lines         472      990      +518     
  Branches       65      104       +39     
===========================================
+ Hits           79      684      +605     
+ Misses        382      219      -163     
- Partials       11       87       +76     
Flag Coverage Δ
#unittests 69.09% <91.58%> (+52.35%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/api.rs 1.06% <0.00%> (+1.06%) ⬆️
src/driver/kvm.rs 84.42% <92.45%> (+57.27%) ⬆️

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 c0d5537...51d3d67. Read the comment docs.

src/driver/kvm.rs Outdated Show resolved Hide resolved
@arnabcs17b006 arnabcs17b006 force-pushed the unit_tests branch 4 times, most recently from 6501bc4 to 327a40d Compare August 22, 2020 09:19
src/driver/kvm.rs Outdated Show resolved Hide resolved
src/driver/kvm.rs Outdated Show resolved Hide resolved
src/driver/kvm.rs Outdated Show resolved Hide resolved
src/driver/kvm.rs Outdated Show resolved Hide resolved
src/driver/kvm.rs Outdated Show resolved Hide resolved
src/driver/kvm.rs Outdated Show resolved Hide resolved
@arnabcs17b006 arnabcs17b006 force-pushed the unit_tests branch 2 times, most recently from d4e3fd9 to dec56ae Compare August 25, 2020 13:02
src/driver/kvm.rs Outdated Show resolved Hide resolved
)
.times(1)
.returning(|_, _, _| Ok(()));
kvmi_mock
Copy link
Collaborator

Choose a reason for hiding this comment

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

@Wenzel is it logically possible for toggling pagefault interception on to fail if called a second time?

src/driver/kvm.rs Outdated Show resolved Hide resolved
@arnabcs17b006 arnabcs17b006 force-pushed the unit_tests branch 5 times, most recently from 03ecf33 to 2947879 Compare August 25, 2020 20:32
src/driver/kvm.rs Outdated Show resolved Hide resolved
src/driver/kvm.rs Outdated Show resolved Hide resolved
src/driver/kvm.rs Outdated Show resolved Hide resolved
src/driver/kvm.rs Outdated Show resolved Hide resolved
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.

None yet

4 participants