Skip to content

Resolve CoreSolver mutable+return state pattern #32

@jc-macdonald

Description

@jc-macdonald

The CoreSolver class conflates mutating internal state with returning values from the same methods. This makes unit testing individual methods difficult and creates unclear contracts.

Problem

As Tim noted: 'there is the confluence of mutating state and returning state that I think makes it a nightmare to unit test the class currently' — e.g., methods that both mutate self and return a property of self (L772).

Proposed direction

Related

Ref: PR #18 review by @TimothyWillard (L1, L772)

Metadata

Metadata

Assignees

No one assigned

    Labels

    architectureStructural or design-level changes

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions