Skip to content

DRY models #195

@andrezero

Description

@andrezero

Why

Our code is verbose because it needs to ensure both typesafe APIs and runtime resolution of values and handling of incomplete inputs

Now that inputs, models, decisions, values, primitives are consolidated we can finally abstract repetition so that

  • less tests to maintain (test once, mock elsewhere)
  • smaller payload

What

Create abstraction for sets

  • explicit set
  • range set
  • bounded set

Cover abstraction with eaxhaustive tests
Simplify tests for models using it: assert it is called and produced value returned

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Task.

    Projects

    Status
    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions