Skip to content

Provide mechanism for intent objects to document (and perhaps enforce) types for inputs and outputs #4

@itamarst

Description

@itamarst

In a language with a good type system you can be sure that the result you swapped in as part of a test vaguely make sense. In Python it's easy to write tests using mocks or resolved values where you end up testing against return types that don't match what the real function returns.

Perhaps intent objects should have a way document or provide validation functions for the return types and callable arguments. Then tests that use resolve_effect (as well as those that test the intent itself) can automatically ensure the tests are using the correct types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions