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

Add decoder Or method #135

Merged
merged 1 commit into from
Sep 21, 2023
Merged

Add decoder Or method #135

merged 1 commit into from
Sep 21, 2023

Conversation

geirolz
Copy link
Owner

@geirolz geirolz commented Sep 21, 2023

No description provided.

@geirolz geirolz merged commit c30c83c into main Sep 21, 2023
@geirolz geirolz deleted the add-decoder-or-method branch September 21, 2023 15:29
val decoderStr2: Decoder[String] = Decoder.decodeString

assertEquals(
obtained = decoderStr1.or(decoderStr2).decode(Xml.ofString("test")),

Check warning

Code scanning / Codacy-scalameta-pro (reported by Codacy)

Prohibits usage of duplicated string literals.

The string literal 'test' appears 4 times in the file.
val decoderStr2: Decoder[String] = Decoder.decodeString

assertEquals(
obtained = decoderStr1.or(decoderStr2).decode(Xml.ofString("test")),

Check notice

Code scanning / Scalastyle (reported by Codacy)

The string literal "test" appears 4 times in the file.

The string literal "test" appears 4 times in the file.
@geirolz geirolz added this to the v0.0.12 milestone Sep 23, 2023
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.

1 participant