Skip to content

Commit

Permalink
ugh there was documentation missing 😱
Browse files Browse the repository at this point in the history
  • Loading branch information
PragTob committed Mar 28, 2019
1 parent 0a4b5fd commit f85e3db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/benchee/formatters/tagged_save.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ defmodule Benchee.Formatters.TaggedSave do
alias Benchee.Suite
alias Benchee.Utility.FileCreation

@doc """
Tags all scenario with the desired tag and returns it in term_to_binary along with save path.
"""
@impl true
@spec format(Suite.t(), map) :: {binary, String.t()}
def format(suite = %Suite{scenarios: scenarios}, formatter_config) do
Expand Down Expand Up @@ -71,6 +74,9 @@ defmodule Benchee.Formatters.TaggedSave do
%Scenario{scenario | name: Scenario.display_name(scenario)}
end

@doc """
Writes the binary returned by `format/2` to the indicated location, telling you where that is.
"""
@spec write({binary, String.t()}, map) :: :ok
@impl true
def write({term_binary, filename}, _) do
Expand Down

0 comments on commit f85e3db

Please sign in to comment.