{"id":15111308,"url":"https://github.com/alejandrohdezma/circe-munit","last_synced_at":"2026-02-07T10:03:51.941Z","repository":{"id":256363970,"uuid":"854998292","full_name":"alejandrohdezma/circe-munit","owner":"alejandrohdezma","description":"MUnit assertions for Circe codecs","archived":false,"fork":false,"pushed_at":"2026-01-27T09:46:56.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-27T22:24:43.063Z","etag":null,"topics":["circe","json","scala","testing"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alejandrohdezma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"ko_fi":"alejandrohdezma"}},"created_at":"2024-09-10T06:02:39.000Z","updated_at":"2026-01-27T09:47:01.000Z","dependencies_parsed_at":"2024-09-10T10:28:03.199Z","dependency_job_id":"7265be34-2e7d-454d-a9d2-5675ba7967df","html_url":"https://github.com/alejandrohdezma/circe-munit","commit_stats":null,"previous_names":["alejandrohdezma/circe-munit"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/alejandrohdezma/circe-munit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alejandrohdezma%2Fcirce-munit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alejandrohdezma%2Fcirce-munit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alejandrohdezma%2Fcirce-munit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alejandrohdezma%2Fcirce-munit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alejandrohdezma","download_url":"https://codeload.github.com/alejandrohdezma/circe-munit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alejandrohdezma%2Fcirce-munit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29191994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["circe","json","scala","testing"],"created_at":"2024-09-26T00:03:19.071Z","updated_at":"2026-02-07T10:03:51.904Z","avatar_url":"https://github.com/alejandrohdezma.png","language":"Scala","funding_links":["https://ko-fi.com/alejandrohdezma"],"categories":[],"sub_categories":[],"readme":"MUnit assertions for Circe codecs\n\n## Installation\n\nAdd the following line to your build.sbt file:\n\n```sbt\nlibraryDependencies += \"com.alejandrohdezma\" %% \"circe-munit\" % \"0.1.0\" % Test\n```\n\n## Usage\n\nCreate a new test class and extend `munit.CirceSuite`:\n\n```scala\nimport io.circe._\nimport io.circe.syntax._\n\nclass MySuite extends munit.CirceSuite {\n\n  // We can asserts codecs, encoders and decoders\n\n  checkCodec(List(1, 2, 3)) {\n    Json.arr(1.asJson, 2.asJson, 3.asJson)\n  }\n\n  checkEncoder(List(1, 2, 3)) {\n    Json.arr(1.asJson, 2.asJson, 3.asJson)\n  }\n\n  checkDecoder(List(1, 2, 3)) {\n    Json.arr(1.asJson, 2.asJson, 3.asJson)\n  }\n\n  // We can provide an extra description for the test\n  // Test name will be \"Codec[Map[String, Int]] (some description)\"\n\n  checkCodec(\"some description\")(Map(\"foo\" -\u003e 42, \"bar\" -\u003e 43)) {\n    Json.obj(\"foo\" := 42, \"bar\" := 43)\n  }\n\n  // We can use any type with a codec, encoder or decoder\n\n  case class Foo(i: Int, s: String)\n\n  implicit val FooCodec: Codec[Foo] = Codec.forProduct2(\"i\", \"s\")(Foo.apply)(foo =\u003e (foo.i, foo.s))\n\n  checkCodec(Foo(42, \"foo\")) {\n    Json.obj(\"i\" := 42, \"s\" := \"foo\")\n  }\n\n  // If the type has type parameters, they will also appear on the test name\n\n  case class Bar[A, B](a: A, b: B)\n\n  implicit def BarCodec[A: Encoder: Decoder, B: Encoder: Decoder]: Codec[Bar[A, B]] =\n    Codec.forProduct2[Bar[A, B], A, B](\"a\", \"b\")(Bar(_, _))(bar =\u003e (bar.a, bar.b))\n\n  // Test name for 👇🏼 will be: `Codec[Bar[Foo, Map[String, Int]]]`\n  checkCodec(Bar(Foo(42, \"foo\"), Map(\"bar\" -\u003e 43))) {\n    Json.obj(\n      \"a\" := Json.obj(\"i\" := 42, \"s\" := \"foo\"),\n      \"b\" := Json.obj(\"bar\" := 43)\n    )\n  }\n\n}\n```\n\n## Contributors to this project \n\n| \u003ca href=\"https://github.com/alejandrohdezma\"\u003e\u003cimg alt=\"alejandrohdezma\" src=\"https://avatars.githubusercontent.com/u/9027541?v=4\u0026s=120\" width=\"120px\" /\u003e\u003c/a\u003e |\n| :--: |\n| \u003ca href=\"https://github.com/alejandrohdezma\"\u003e\u003csub\u003e\u003cb\u003ealejandrohdezma\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falejandrohdezma%2Fcirce-munit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falejandrohdezma%2Fcirce-munit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falejandrohdezma%2Fcirce-munit/lists"}