CodyEngel / fakek

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

adds possibility to create a FakeCat #47

Closed ewatch closed 3 years ago

ewatch commented 3 years ago

Closes #37

Description

Adds the possibility to create a FakeCat with name, breed and registry.

Technical Details

added FakeCat as data class added FakeCatTest with mock of values added internal type alias added fakeCat to FakeContext

Code Samples

fun main() {
    // fakeCat: fakeCat(name="Balou", breed="Norwegian Forest Cat", registry="Canadian Cat Association")
    fakek { println("fakeCat Name: $fakeCat") }
}

Reviewers: @CodyEngel

codecov[bot] commented 3 years ago

Codecov Report

Merging #47 into main will increase coverage by 0.03%. The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main      #47      +/-   ##
============================================
+ Coverage     98.64%   98.68%   +0.03%     
- Complexity       57       59       +2     
============================================
  Files            14       15       +1     
  Lines           148      152       +4     
  Branches          3        3              
============================================
+ Hits            146      150       +4     
  Misses            1        1              
  Partials          1        1              
Impacted Files Coverage Δ Complexity Δ
src/main/kotlin/dev/fakek/FakeContext.kt 96.42% <100.00%> (+0.27%) 1.00 <0.00> (ø)
src/main/kotlin/dev/fakek/fakes/FakeCat.kt 100.00% <100.00%> (ø) 2.00 <2.00> (?)

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 accd5c8...4506971. Read the comment docs.