Skip to content

An Elixir module for exporting private functions in tests.

License

Notifications You must be signed in to change notification settings

ejpcmac/export_private

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExportPrivate

hex.pm version

An Elixir module for exporting private functions in tests.

Usage

To export private functions when in :test environment:

  1. Add this to your dependencies:

    {:export_private, ">= 0.0.0"}
  2. use it in your modules:

    defmodule MyModule do
      use ExportPrivate
    
      # This function will be exported when Mix.env() == :test.
      defp private_func, do: :test
    end

And yeah, that’s it.

About

An Elixir module for exporting private functions in tests.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages