Skip to content

Cannot verify 0 times invocations using RepeatedSequence #308

@jussi-muhonen-nexstim

Description

@jussi-muhonen-nexstim

When running data driven tests it sometimes required to verify 0 invocations in chain of sequences. This is currently impossible as 0 is not allowed in RepeatedSequence operator*(const Sequence&, int times). Relaxing the requirement to not allowing negative numbers lets the tests pass but then the 0 is not used but only ignored. This requires to require Exactly(0) calls to mocked function.

It would be great to allow 0 and then require 0 invocations as well in RepeatedSequence.

ps. My humblest thanks to everyone working on this project, it's a lifesaver (at least time saver!)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions