ArchTest.Call (ArchTest v0.3.1)

Copy Markdown View Source

Function-level call metadata extracted from compiled BEAM files.

ArchTest.Collector.calls/2 and calls_from_path/2 return this struct when debug information is available. The module-level dependency graph stays available for fast checks; call metadata is for diagnostics and advanced rules that need caller function, callee function, file, or line. kind describes how the dependency was observed, such as :remote_call, :remote_capture, or :static_apply.

Summary

Types

t()

@type t() :: %ArchTest.Call{
  callee_arity: non_neg_integer() | nil,
  callee_function: atom() | nil,
  callee_module: module(),
  caller_arity: non_neg_integer() | nil,
  caller_function: atom() | nil,
  caller_module: module(),
  file: String.t() | nil,
  kind: atom(),
  line: pos_integer() | nil
}