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

File-grained NotSupported error #126

Merged
merged 7 commits into from
Dec 13, 2022
Merged

File-grained NotSupported error #126

merged 7 commits into from
Dec 13, 2022

Conversation

doehyunbaek
Copy link
Collaborator

With 1d467c1, error type for not supported cases are subdivided and thrown accordingly.

Additionally, there are some changes to json files used for manual filtering config.

  • filtered.json --> categorized.json
  • separate "not yet categorized tests" into its own file(yet-categorized.json)
  • deleted currently unsupported features from supported-features.json\

@@ -6,4 +6,25 @@ case class NotSupported(reasonPath: NotSupported.ReasonPath)
object NotSupported:
type Reason = String
type ReasonPath = List[Reason]
def apply(reason: Reason): NotSupported = NotSupported(List(reason))
def unapply(ns: NotSupported): Option[ReasonPath] = Some(ns.reasonPath)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it is unnecessary because already NotSupported is defined as a case class.

Suggested change
def unapply(ns: NotSupported): Option[ReasonPath] = Some(ns.reasonPath)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah it was left as this because it was once a normal class while refactoring. Thanks for great catch.

Delte unnecessary unapply resolvse this.

Copy link
Contributor

@jhnaldo jhnaldo left a comment

Choose a reason for hiding this comment

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

LGTM! 👍

@jhnaldo jhnaldo added enhancement Enhance the quality of a feature area:utils Related to global utilities labels Dec 13, 2022
@jhnaldo jhnaldo merged commit d6103ab into dev Dec 13, 2022
@jhnaldo jhnaldo deleted the dev-unify-filter branch December 13, 2022 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:utils Related to global utilities enhancement Enhance the quality of a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants