Skip to content
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

Adds runner for Ion conformance tests #887

Merged
merged 2 commits into from
Jun 28, 2024

Conversation

popematt
Copy link
Contributor

Issue #, if available:

#748

Description of changes:

  • Adds an interpreter for the conformance DSL
  • Makes FakeSymbolToken implement _Private_SymbolToken so that we can be sure that FakeSymbolToken will work everywhere we need it to.
  • Fixes a bug in _Private_IonTextWriterBuilder_1_1

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link

codecov bot commented Jun 19, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Please upload report for BASE (ion-11-encoding@d103547). Learn more about missing BASE report.

Current head c873a7f differs from pull request most recent head dea2cab

Please upload reports for the commit dea2cab to get more accurate results.

Files Patch % Lines
...on/ion/impl/_Private_IonTextWriterBuilder_1_1.java 50.00% 1 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                 @@
##             ion-11-encoding     #887   +/-   ##
==================================================
  Coverage                   ?   69.06%           
  Complexity                 ?     6326           
==================================================
  Files                      ?      183           
  Lines                      ?    25310           
  Branches                   ?     4528           
==================================================
  Hits                       ?    17481           
  Misses                     ?     6456           
  Partials                   ?     1373           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@popematt popematt requested a review from tgregg June 19, 2024 20:28
Copy link
Contributor

@tgregg tgregg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a good start!

IonType.FLOAT -> recordEvent(value = doubleValue())
IonType.DECIMAL -> recordEvent(value = decimalValue())
IonType.TIMESTAMP -> recordEvent(value = timestampValue())
IonType.SYMBOL -> recordEvent(value = symbolValue())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: there are sometimes multiple APIs that can be used to retrieve values of a particular type, e.g. symbolValue() and stringValue() for IonType.SYMBOL. We should consider how to eventually add support for testing a wider variety of API combinations.

src/test/java/com/amazon/ion/conformance/expectations.kt Outdated Show resolved Hide resolved
src/test/java/com/amazon/ion/conformance/fragments.kt Outdated Show resolved Hide resolved
@popematt popematt merged commit eb75c90 into amazon-ion:ion-11-encoding Jun 28, 2024
18 of 34 checks passed
@popematt popematt deleted the conformance-tests branch June 28, 2024 00:13
tgregg pushed a commit that referenced this pull request Jun 28, 2024
tgregg pushed a commit that referenced this pull request Sep 9, 2024
tgregg pushed a commit that referenced this pull request Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants