Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

implement mockreaper for unit testing #207

Merged
merged 2 commits into from
Apr 6, 2018

Conversation

devimc
Copy link

@devimc devimc commented Apr 4, 2018

No description provided.

Julio Montes added 2 commits April 4, 2018 10:58
All reaper implementations must override its functions.
This new interface allows the creation of mock reapers that
are useful for unit testing.

Signed-off-by: Julio Montes <julio.montes@intel.com>
mockreaper is a helpful struct to write unit tests

fixes kata-containers#208

Signed-off-by: Julio Montes <julio.montes@intel.com>
@codecov
Copy link

codecov bot commented Apr 4, 2018

Codecov Report

Merging #207 into master will increase coverage by 1.28%.
The diff coverage is 43.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #207      +/-   ##
==========================================
+ Coverage   32.05%   33.33%   +1.28%     
==========================================
  Files          10       11       +1     
  Lines        1482     1599     +117     
==========================================
+ Hits          475      533      +58     
- Misses        940      986      +46     
- Partials       67       80      +13
Impacted Files Coverage Δ
grpc.go 3.91% <0%> (ø) ⬆️
reaper.go 0% <0%> (ø) ⬆️
agent.go 21.37% <0%> (ø) ⬆️
mockreaper.go 100% <100%> (ø)
network.go 46.24% <0%> (-0.21%) ⬇️

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 c8199f6...ee7850d. Read the comment docs.

@jodh-intel
Copy link
Contributor

jodh-intel commented Apr 5, 2018

lgtm

Approved with PullApprove

@sboeuf sboeuf merged commit a80ad16 into kata-containers:master Apr 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants