Skip to content

testing: add assert function #21015

Description

@jmeridth

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

1.8.3

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOHOSTOS="linux"
Ubuntu 17.04

I'd like to make the func assert available in the testing standard library package. I see it being used in multiple places already and it makes sense to centralize it and DRY up the usage.

Examples:
https://github.com/golang/go/blob/master/test/const.go#L39
https://github.com/golang/go/blob/master/test/iota.go#L11
https://github.com/golang/go/blob/master/test/typeswitch.go#L38

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions