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

expand on the have_.*_sample riff #246

Merged
merged 3 commits into from
May 12, 2020
Merged

Conversation

doudou
Copy link
Member

@doudou doudou commented May 8, 2020

Depends on:

- create the `have...sample_matching` predicates which allow to match
  the samples against a predicate, for instance because one is looking
  for an (asynchronous) state change
- create `have_new_samples` and `have_new_samples_matching`
  predicates to read more than one sample
@doudou doudou requested a review from g-arjones May 8, 2020 20:27
@g-arjones
Copy link
Contributor

Cool... Thanks for this 👍

….().matching

This is a lot more syskit-ish, and reads better

~~~
have_one_new_sample_matching(reader) { ... }
~~~

reads like we're matching reader, while

~~~
have_one_new_sample(reader).matching { ... }
~~~

reads better (admittedly in the narrow space of Syskit syntax ...)
It seems that rubocop 0.83 started to pick up .simplecov
@doudou doudou force-pushed the expand_the_have_sample_predicates branch from 94b480d to f864bc2 Compare May 11, 2020 21:33
@doudou doudou merged commit 4819d13 into master May 12, 2020
@doudou doudou deleted the expand_the_have_sample_predicates branch May 12, 2020 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants