gtest target tests a locally redefined function, not production code
メンテナーはふだん 4 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- cpp
調査の方向性
xplane_plugin/tests/test_threading_tools.cpp と xplane_plugin/meson.build から始め、ローカルの generate_packet 定義とテスト呼び出しを threading-tools.h と比較します。対象がプロダクションコードをテストできるのか、それとも削除すべきなのかを判断する前に、関連する issue #190、#66、#103 を確認します。完了の条件は、meson test がローカルで定義されたコードだけを実行する、成功するテストターゲットを表示しなくなることです。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
xplane_plugin/tests/test_threading_tools.cpp includes threading-tools.h, which declares generate_packet(vector<string>), then defines its own generate_packet(const string&, const string&, const string&, const string&) at line 11. Both tests call the local four-string version, so overload resolution never reaches the header's declaration. That is also why the header's missing definitions never cause a link error.
test_threading_tools is the only test target in xplane_plugin/meson.build, so the C++ suite currently exercises no production code at all. meson test passing means nothing.
Expected behavior
The suite tests real production code, or the target is removed so a passing run is not mistaken for coverage.
Additional context
ThreadMessage in the header is a four-float struct, predating the current eight-value payload, so the test reflects an obsolete data model. Related to #66 and #103. Should be resolved together with #190.
Found while writing the setup documentation in #138 / #178.
- 主要言語
- Rust
- スター
- 4
- フォーク
- 8
- 平均マージ
- 3日 12時間
- マージ済み PR(30日)
- 16
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
oss-slu/PilotDataSynchronization のほかの issue
-
area:ml bug python
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
oss-slu/PilotDataSynchronization#232 ·
メンテナーはふだん 4 日以内に返信
-
area:docs area:xplane-plugin documentation ready-for-human
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
oss-slu/PilotDataSynchronization#194 ·
メンテナーはふだん 4 日以内に返信
-
area:ml enhancement needs-info python
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
oss-slu/PilotDataSynchronization#233 ·
メンテナーはふだん 4 日以内に返信
-
area:ml enhancement python
難易度 4/5 3〜5日 初心者へのやさしさ 44/100
oss-slu/PilotDataSynchronization#231 ·
メンテナーはふだん 4 日以内に返信
-
area:ml enhancement python
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
oss-slu/PilotDataSynchronization#230 ·
メンテナーはふだん 4 日以内に返信
oss-slu/PilotDataSynchronization の issue をすべて見る
似ている issue
-
RUSTSEC-2026-0348: Brotli certificate decompression can allocate up to 1 GiB before authenticationオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 60/100
-
難易度 1/5 1〜3時間 初心者へのやさしさ 62/100
-
core: Amount::from_str panics on values above 21M BTC instead of returning an error対応中かも @bhuvan-somisetty が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
crate: spate-s3
難易度 2/5 半日 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
write_iceberg ignores the table's write.parquet.compression-codec property対応中かも @YuangGao が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Eventual-Inc/Daft#7606 ·
メンテナーはふだん 1 日以内に返信