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 Array of metadataSeq in RichMap #72
Conversation
@@ -85,6 +85,11 @@ class RichMetadataTest extends FlatSpec with TestCommon { | |||
val mergedMetadata = meta1.deepMerge(map2.toMetadata) | |||
mergedMetadata.json shouldBe Serialization.write(mergedMap) | |||
|
|||
val m1 = Map("1" -> Array(Map("val" -> "a").toMetadata)).toMetadata |
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.
Lets add it as a separate test case
@@ -100,6 +105,17 @@ class RichMetadataTest extends FlatSpec with TestCommon { | |||
summaryMeta.containsSummaryMetadata shouldBe true | |||
} | |||
|
|||
it should "create summary for a given metadata" in { | |||
val richMetaData = RichMetadata(meta1) |
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.
No need to explicitely wrap metadata into RichMetadata. It should world implicitly.
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.
Lgtm. See comments.
Ooops, I should have waited for the tests to complete. |
Codecov Report
@@ Coverage Diff @@
## master #72 +/- ##
==========================================
+ Coverage 86.11% 86.18% +0.06%
==========================================
Files 298 298
Lines 9303 9762 +459
Branches 304 531 +227
==========================================
+ Hits 8011 8413 +402
- Misses 1292 1349 +57
Continue to review full report at Codecov.
|
In RichMap, for Array values, we are currently accepting booleanSeq, intSeq, longSeq, doubleSeq and stringSeq.