Skip to content

Make it possible to use go-cmp with autogold.Want inline updates if so desired #12

@emidoots

Description

@emidoots
Member

Not unreasonable that someone may have a fair amount of go-cmp tests and want to integrate autogold slowly. We could allow this by having autogold.Want(...).Value() return the interface() value it got, and allowing the user to signal if the test needs updating or not. e.g. they call .Value(), pass it to go-cmp, and invoke .Fail() or something like that.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @emidoots

        Issue actions

          Make it possible to use go-cmp with autogold.Want inline updates if so desired · Issue #12 · hexops/autogold