Skip to content

Commit 3cd8825

Browse files
committed
emoji [nfc]: Mark query-matches method visibleForTesting, conceptually private
In the app, the only entry point to this logic should be through EmojiAutocompleteView. The method is public only because that made it more convenient to write thorough unit tests.
1 parent eb26c84 commit 3cd8825

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/model/emoji.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ class EmojiAutocompleteQuery extends ComposeAutocompleteQuery {
380380
}
381381

382382
// Compare get_emoji_matcher in Zulip web:shared/src/typeahead.ts .
383+
@visibleForTesting
383384
bool matches(EmojiCandidate candidate) {
384385
if (_adjusted == '') return true;
385386
if (candidate.emojiDisplay case UnicodeEmojiDisplay(:var emojiUnicode)) {

0 commit comments

Comments
 (0)