CodyEngel / fakek

A faker library for Kotlin.
Apache License 2.0
7 stars 6 forks source link

+ add fakeDog to context #48

Closed JacobKant closed 3 years ago

JacobKant commented 3 years ago

Closes https://github.com/CodyEngel/fakek/issues/41

Description

add FakeDog to context

Technical Details

add FakeDog data class add FakeDog lazy instance in FakeContext add Test for construction FakeDog from FakerDog add Test check FakeDog instance exists in FakeContext

Code Samples

fun main() {
    fakek { println("fakeDog: $fakeDog") }
}

Reviewers: @CodyEngel

codecov[bot] commented 3 years ago

Codecov Report

Merging #48 into main will increase coverage by 0.12%. The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main      #48      +/-   ##
============================================
+ Coverage     98.68%   98.80%   +0.12%     
- Complexity       59       67       +8     
============================================
  Files            15       15              
  Lines           152      168      +16     
  Branches          3        3              
============================================
+ Hits            150      166      +16     
  Misses            1        1              
  Partials          1        1              
Impacted Files Coverage Δ Complexity Δ
src/main/kotlin/dev/fakek/FakeContext.kt 96.42% <100.00%> (ø) 1.00 <0.00> (ø)
src/main/kotlin/dev/fakek/fakes/FakeDog.kt 100.00% <100.00%> (ø) 10.00 <10.00> (?)
src/main/kotlin/dev/fakek/fakes/FakeCat.kt

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 b4e6839...730d26e. Read the comment docs.