-
Notifications
You must be signed in to change notification settings - Fork 54
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
adding in examples and tests for amend2 generators #101
Conversation
Codecov Report
@@ Coverage Diff @@
## master #101 +/- ##
==========================================
+ Coverage 70.67% 71.31% +0.63%
==========================================
Files 24 24
Lines 1081 1105 +24
Branches 125 125
==========================================
+ Hits 764 788 +24
Misses 317 317
Continue to review full report at Codecov.
|
"type": "STRING" | ||
} | ||
] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
newline, surprised if this isn't caught in style checks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly the map thing so that the output is crisp. Otherwise looks good
.tupled | ||
.amend2(recordIdGen)(_.set("record_id"), _.set("record_id")) | ||
|
||
val correlatedRecordGen: Gen[(TableRow, TableRow)] = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can call a.map
after to set the nested field so that the output is a single TableRow with the record ID fields correlated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for Avro
private val tableRowGenDup: Gen[TableRow] = | ||
tableRowOf(tableSchema) | ||
|
||
val exampleRecordGen2: Gen[(TableRow, TableRow)] = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we name this something else. Maybe joinableExampleGen or something more descriptive. The name itself is up to you
👍 Good to merge when tests pass |
This contains examples for
amend2
generatorsWill address #93