CodyEngel / fakek

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

Add fake aviation implementation #56

Closed RafaelPereiraSantos closed 3 years ago

RafaelPereiraSantos commented 3 years ago

Closes #35

Description

Add a fake aviation info: aircraft model, airport code and METAR (weather conditions)

Technical Details

Add a new class called FakeAviation that wrapper FakerAviation in order to provide its attributes

Code Samples

Please provide code samples for how these changes will be used by applications consuming this library. Here's an example:

fun main() {
    val aviation = fakek.fakeAviation
    val model = aviation.aircraft
    val destiny = aviation.airport
    val weather = aviation.METAR 
    println("The plane with model, $destiny, is about to get to the airport $destiny, it may suffer some problems given the wheather condition that is, according with the tower, $weather")
}

Reviewers: @CodyEngel

codecov[bot] commented 3 years ago

Codecov Report

Merging #56 into main will increase coverage by 0.04%. The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main      #56      +/-   ##
============================================
+ Coverage     99.06%   99.11%   +0.04%     
- Complexity       90       95       +5     
============================================
  Files            20       21       +1     
  Lines           215      225      +10     
  Branches          3        3              
============================================
+ Hits            213      223      +10     
  Misses            1        1              
  Partials          1        1              
Impacted Files Coverage Δ Complexity Δ
src/main/kotlin/dev/fakek/FakeContext.kt 97.43% <100.00%> (+0.13%) 1.00 <0.00> (ø)
src/main/kotlin/dev/fakek/fakes/FakeAviation.kt 100.00% <100.00%> (ø) 5.00 <5.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 2fbd1c5...4b5b61f. Read the comment docs.