Extend generator filtering to support element ranges
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
- #3189 @annacastroops による — マージされずにクローズ
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- cpp
- 領域
- cli, testing-qa
調査の方向性
まず、最近追加されたジェネレーターのフィルタリング実装と、すでにコンマを OR として使用しているテスト仕様を見つけます。例と設計上の疑問から、受け入れられる範囲構文と検証動作を定義し、その後、組み合わせ、順序、重複、重なり、および不正な範囲や負の範囲を対象とするカバレッジを追加します。完了とは、有効なフィルターが意図したジェネレーター要素を選択し、無効なフィルターが拒否されることです。
索引モデルが issue の本文から書いたものです。
説明
Note that all the ideas here are fully backwards compatible, so the
extension can be implemented without a breaking change
The recently-added generator filtering only allows filtering to a singular
element. This can be extended to support multiple elements and/or element
ranges.
For multiple separate elements, we can reuse the concept of commas as "OR"
from the test specs. This would then mean that -g 1,3,4 filters the
generator to indices 1, 3, and 4. For element ranges, we can use
the start-end format, so that -g 1-4 would filter the generator to
indices 1, 2, 3, and 4.
These two should also be combinable, so that -g 1,3,6-10 filters the
generator to indices 1, 3, 6, 7, ..., 10.
Examples
Accepted
-g 1,2- Elements at indices 1 and 2.-g 1-3- Elements at indices 1, 2, and 3.-g 1-1- Single element range, only the element at index 1.-g 1-3,4,5-10- Elements at indices 1,...,10.
Rejected
-g 1-3,2-4- The two element ranges are overlapping-g 3,2,1- Elements are in bad order, must be monotonically increasing-g 3-1- Range is decreasing, see above-g 1,2,2,3- 3rd element is duplicated-g -2- Negative number, should still be rejected-g 1--2- Syntactically invalid-g 1-2-3- Syntactically invalid
Design questions
-
Should the ranges be closed? Programming usually uses half-open ranges,
but closed-ranges feel more intuitive for specifying the range on the
command line. -
Should we error out on bad-but-fixable filters? Erroring out is less
confusing, but fixing can be more user friendly.- Duplicated indices can be deduplicated.
- Unsorted indices can be sorted
- Overlapping ranges could be merged
-
Should we support partially-specified ranges?
3-*could mean "From 4th element to the end of the generator"
- 主要言語
- C++
- スター
- 21.6k
- フォーク
- 3.4k
- 平均マージ
- 3日 12時間
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
catchorg/Catch2 のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 2 日以内に返信
-
catch_discover_tests passes all EXTRA_ARGS as one argument対応中かも @CyberKun が 11 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
catchorg/Catch2#3239 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
Not seeing some error messages from fakeit in jetbrains rider対応中かも @Amanpal9 が 21 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
catchorg/Catch2#3228 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
catch_discover_tests fails for Emscripten/WASM tests since v3.16.0対応中かも @nafiurahman00 が 8 日前に担当しました。 オープンExtras
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
catchorg/Catch2#3241 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
メンテナーはふだん 2 日以内に返信
catchorg/Catch2 の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
cp-algorithms/cp-algorithms#1774 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
telefonicaid/fiware-orion#4836 ·
メンテナーはふだん 1 日以内に返信
-
nixd exits at startup when its parent process belongs to another user対応中かも @conao3 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
nix-community/nixd#930 ·
メンテナーはふだん 2 日以内に返信
-
refactor topic-ui topic-weather
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Command-Install Needs-Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
microsoft/winget-cli#6718 ·
メンテナーはふだん 2 日以内に返信