Current section

Files

Jump to
reach lib reach map depth_metric.ex
Raw

lib/reach/map/depth_metric.ex

defmodule Reach.Map.DepthMetric do
@moduledoc "Struct for control nesting depth metrics of a function."
@derive Jason.Encoder
defstruct [:module, :function, :depth, :clauses, :file, :line, :branch_count]
def new(attrs), do: struct!(__MODULE__, attrs)
end