{"id":17130706,"url":"https://github.com/jechol/testable_defp","last_synced_at":"2025-03-24T04:46:05.920Z","repository":{"id":52954985,"uuid":"521171828","full_name":"jechol/testable_defp","owner":"jechol","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-15T17:37:21.000Z","size":5,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-23T23:39:17.294Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jechol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-04T07:44:24.000Z","updated_at":"2022-08-04T07:44:48.000Z","dependencies_parsed_at":"2022-08-26T14:00:30.743Z","dependency_job_id":null,"html_url":"https://github.com/jechol/testable_defp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jechol%2Ftestable_defp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jechol%2Ftestable_defp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jechol%2Ftestable_defp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jechol%2Ftestable_defp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jechol","download_url":"https://codeload.github.com/jechol/testable_defp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245212176,"owners_count":20578440,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-14T19:13:00.959Z","updated_at":"2025-03-24T04:46:05.889Z","avatar_url":"https://github.com/jechol.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Testable `defp`\n\nChange `defp` to `def` when `mix test`\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `testable_defp` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:testable_defp, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\n## Example\n\n```elixir\ndefmodule TestableDefpTest do\n  use ExUnit.Case\n  doctest TestableDefp\n\n  defmodule Subject do\n    use TestableDefp\n\n    defp add(a, b) do\n      a + b\n    end\n  end\n\n  test \"defp is def for test\" do\n    assert 3 == Subject.add(1, 2)\n  end\nend\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjechol%2Ftestable_defp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjechol%2Ftestable_defp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjechol%2Ftestable_defp/lists"}