Skip to content

100% runtime test coverage for validate() #7

@crdrost

Description

@crdrost

Expressing a datatype-generic function like validate() requires hitting the any type really hard which makes it absolutely the most important code to get right, as the type system gives us so many fewer guarantees about the structure in there. 100% test coverage is more of a starting point for reliability than an ending point; as a friend on Twitter pointed out, function sin(x) { return x; } has 100% coverage if all you test is expect(sin(0)).toBe(0). But here I really do want to make sure that all of the branches have worked out at least once before.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions