Ancora.SubjectFiles (ancora v1.0.0-rc.1)

Copy Markdown View Source

Computes subject file footprints from tagged tests and derived definitions.

Summary

Functions

Builds %{subject_id => footprint} for a map of subject sets.

Returns one subject's exact test-file and defining-file union.

Functions

build(subject_sets, locator)

@spec build(%{required(String.t()) => map()}, Ancora.Derive.ModuleLocator.t()) :: %{
  required(String.t()) => MapSet.t(Path.t())
}

Builds %{subject_id => footprint} for a map of subject sets.

footprint(subject_set, locator)

@spec footprint(map(), Ancora.Derive.ModuleLocator.t()) :: MapSet.t(Path.t())

Returns one subject's exact test-file and defining-file union.