Skip to content

HaveEach(): Doc Comments Contradictory #703

@jgrieger

Description

@jgrieger

The following doc comment:

// Please note that if actual is empty, HaveEach always will succeed.

does not fit to the implementation anymore:
return false, fmt.Errorf("HaveEach matcher expects a non-empty array/slice/map. Got:\n%s",

The new behavior war introduced with #524.

Please let me know if I shall update the doc comment.

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