dart-lang / dart-lang/test

Add an "exactlyOneOf" matcher

Open
#2,343 1 comment 2 reactions 0 assignees View on GitHub
package:matcher type-enhancement
Dominant language
Dart
Stars
536
Forks
232
Avg merge
1d 10h
Merged PRs (30d)
10

Description

Sometimes it's useful to say that exactly one of a set of matchers matches. We should have a matcher that supports this.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing matcher API and matcher tests to understand how a matcher accepting a set of matchers is specified. Define completion as having an exactlyOneOf matcher whose result is true only when exactly one supplied matcher matches, with tests covering the relevant match counts.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.