Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: extended verification language #196

Open
oleksiyp opened this issue Dec 3, 2018 · 3 comments
Open

Feature: extended verification language #196

oleksiyp opened this issue Dec 3, 2018 · 3 comments

Comments

@oleksiyp
Copy link
Collaborator

oleksiyp commented Dec 3, 2018

No description provided.

@oleksiyp
Copy link
Collaborator Author

oleksiyp commented Dec 7, 2018

Some sketch of syntax:

        verify {
            anyOf {
                mock.op(1, 2)
                
                anyOf { 
                    mock.op(3, 4)
                } or {
                    mock.op(5, 6)
                }
                
            } or {
                mock.op(2, 3)
            } or {
                allOf {

                } and {

                }
            }
        }

@oleksiyp oleksiyp changed the title Verify that one of two possible methods was invoked Feature: extended verification language Dec 25, 2018
@stale
Copy link

stale bot commented Jul 23, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If you are sure that this issue is important and should not be marked as stale just put an important tag.

@stale stale bot added the stale label Jul 23, 2019
@stale stale bot closed this as completed Jul 30, 2019
@oleksiyp oleksiyp added important and removed stale labels Nov 2, 2019
@oleksiyp oleksiyp reopened this Nov 2, 2019
@tomblenz
Copy link

This would be quite useful in Android for functions which branch based on SDK version due to deprecated methods. For instance

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
   vibrateService.vibrate(VibrationEffect.createOneShot(...))
} else {
   vibrateService.vibrate(100L)
}

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

No branches or pull requests

2 participants