Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Adds support for custom date type #183

Merged
merged 2 commits into from
Jul 14, 2022
Merged

Adds support for custom date type #183

merged 2 commits into from
Jul 14, 2022

Conversation

alycklama
Copy link
Contributor

I would love to add a test for the custom data type, but it fails to find the specific implicit of Encoder[org.joda.time.DateTime]. Which makes sense, I'm just wondering how I can bring it on scope in the test. Do you have any idea perhaps?

override def warn(msg: String): Unit =
println(s"Warning: $msg")
}
val StdOut: LogAdapter = (msg: String) => println(s"Warning: $msg")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Did some boyscouting here.

@@ -124,7 +126,7 @@ object GeneratorTest extends TestSuite {

def testNoCompile(
codeGenConfig: CodegenConfig = CodegenConfig()
)(implicit testPath: utest.framework.TestPath) = {
)(implicit testPath: utest.framework.TestPath): Unit = {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Gets rid of compiler warnings

@@ -141,7 +143,7 @@ object GeneratorTest extends TestSuite {

def test(
codeGenConfig: CodegenConfig = CodegenConfig()
)(implicit testPath: utest.framework.TestPath) = {
)(implicit testPath: utest.framework.TestPath): Unit = {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Gets rid of compiler warnings

@alycklama
Copy link
Contributor Author

Added a test for Instant instead of java.util.Date, conceptually it doesn't matter.

Copy link
Owner

@ghostbuster91 ghostbuster91 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@ghostbuster91 ghostbuster91 merged commit 322a057 into ghostbuster91:master Jul 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants