class

Mrcv::Core::ProjectTarget

Inherits Reference < Object

Represents a target codebase under evaluation (Application executable or Library shard).

Constructors

new(name : String, kind : Kind, entrypoint : String | Nil = nil, spec_files : Array(String) = [] of String, root_path : String = ".", spec_line_count : Int32 = 0, root_dir : String | Nil = nil)
Source

Instance methods

application?

Returns true if this target represents an executable application.

Source
comprehensive_specs?

Returns true if the target possesses a comprehensive test suite (>= 3 files or >= 200 lines).

Source
entrypoint
Source
entrypoint_path

Resolves the relative or absolute entrypoint path joined with root_path.

Source
has_entrypoint?

Returns true if a non-empty entrypoint path is specified.

Source
has_specs?

Returns true if the target has at least one discovered spec file.

Source
kind
Source
library?

Returns true if this target represents a shard library.

Source
name
Source
root_dir

Alias for root_path for compatibility with various spec conventions

Source
root_path
Source
spec_count

Returns the total count of discovered spec files.

Source
spec_files
Source
spec_line_count
Source
to_s(io : IO) : Nil

Returns human-readable summary of the target.

Source
validate!

Validates target configuration and raises ArgumentError on invariant violations.

Source

Nested types