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

Change StaticType.AnyOfType's .toString to not perform .flatten() #1393

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

alancai98
Copy link
Member

Description

Change the StaticType.AnyOfType's .toString method to not perform a .flatten() call. This can make things clearer when debugging StaticType.AnyOfType strings.

Previously,
StaticType.unionOf(StaticType.STRING, StaticType.NULL) and StaticType.unionOf(unionOf(StaticType.STRING, StaticType.NULL)) would output the same string, which made debugging confusing.

Other Information

License Information

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

Copy link

Conformance comparison report

Base (f42e74f) d1999fd +/-
% Passing 92.54% 92.54% 0.00%
✅ Passing 5384 5384 0
❌ Failing 434 434 0
🔶 Ignored 0 0 0
Total Tests 5818 5818 0

Number passing in both: 5384

Number failing in both: 434

Number passing in Base (f42e74f) but now fail: 0

Number failing in Base (f42e74f) but now pass: 0

@codecov-commenter
Copy link

codecov-commenter commented Mar 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.14%. Comparing base (f42e74f) to head (5651457).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #1393   +/-   ##
=========================================
  Coverage     73.14%   73.14%           
  Complexity     2393     2393           
=========================================
  Files           247      247           
  Lines         17623    17623           
  Branches       3176     3176           
=========================================
  Hits          12890    12890           
  Misses         3856     3856           
  Partials        877      877           
Flag Coverage Δ
CLI 11.82% <ø> (ø)
EXAMPLES 80.07% <ø> (ø)
LANG 81.04% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link
Contributor

@rchowell rchowell left a comment

Choose a reason for hiding this comment

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

Great idea. Thanks.

@alancai98 alancai98 merged commit a18e8e0 into main Mar 20, 2024
10 checks passed
@alancai98 alancai98 deleted the change-anyoftype-to-string branch March 20, 2024 16:36
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.

3 participants