Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

gtest target tests a locally redefined function, not production code

オープン
#191 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 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 の本文から書いたものです。

説明

area:xplane-plugin testing

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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

oss-slu/PilotDataSynchronization のほかの issue

oss-slu/PilotDataSynchronization の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。