Skip to content

Commit

Permalink
hiding functions that were meant to be private
Browse files Browse the repository at this point in the history
  • Loading branch information
jbsf2 committed Sep 20, 2024
1 parent fabc89e commit ec65af4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/protomock.ex
Original file line number Diff line number Diff line change
Expand Up @@ -565,12 +565,12 @@ defmodule ProtoMock do
end

@spec has_stubs?(state(), function()) :: boolean
def has_stubs?(state, function) do
defp has_stubs?(state, function) do
Map.get(state.stubs, function) != nil
end

@spec has_expectations?(state(), function()) :: boolean
def has_expectations?(state, function) do
defp has_expectations?(state, function) do
state.expectations
|> Enum.any?(fn expectation ->
expectation.mocked_function == function
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule ProtoMock.MixProject do
use Mix.Project

@version "1.1.1"
@version "1.1.2"
@github_page "https://github.com/jbsf2/protomock"

def project do
Expand Down

0 comments on commit ec65af4

Please sign in to comment.