Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

Conversation

@todofixthis
Copy link
Contributor

@todofixthis todofixthis commented Oct 8, 2019

Extracts copy-pasted filter logic into a new filter macro. In particular, this reduces unit testing burden for new command request filters — we have plenty of coverage for the new StringifiedTrytesArray filter macro, so it shouldn't be necessary to write additional tests if a new command wants to use it.

See #242 (comment) for context.

Copy link
Collaborator

@lzpap lzpap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@lzpap lzpap merged commit bc8f1d8 into develop Oct 10, 2019
lzpap added a commit to lzpap/pyota that referenced this pull request Oct 10, 2019
StringifiedTrytesArray(Type) filter macro was
introduced in iotaledger-archive#243. Becasue of this, no request
filter test case is needed, hence the macro is
covered already in other test cases.
@todofixthis todofixthis deleted the filter-macro branch October 10, 2019 09:47
lzpap added a commit to lzpap/pyota that referenced this pull request Oct 10, 2019
StringifiedTrytesArray(Type) filter macro was
introduced in iotaledger-archive#243. Becasue of this, no request
filter test case is needed, hence the macro is
covered already in other test cases.
lzpap added a commit to lzpap/pyota that referenced this pull request Oct 10, 2019
StringifiedTrytesArray(Type) filter macro was
introduced in iotaledger-archive#243. Becasue of this, no request
filter test case is needed, hence the macro is
covered already in other test cases.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants