Skip to content

regexp: add type checks for assert.Regexp regexp argument #81

@dolmen

Description

@dolmen

The signature for assert.Regexp (and associated methods) is:

func Regexp(t TestingT, rx interface{}, str interface{}, msgAndArgs ...interface{}) bool

However rx should only be *regexp.Regexp or string.

Related: stretchr/testify#1585
Cc: @kevinburkesegment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions