go test ./... fails without a tarantool binary

オープン 初心者向け
#26 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
go
領域
testing

調査の方向性

example_test.goの193行目と229行目付近を読み、upTarantoolとTarantoolを使用する2つの例を確認してください。例の命名方法と、exec.LookPath("tarantool")が失敗した場合にGoのテストをスキップする方法を確認してください。Tarantoolがインストールされていない状態でgo test ./...が成功し、名前を変更した例が実在する識別子に関連付けられれば完了です。

索引モデルが issue の本文から書いたものです。

説明

code health

Reproduction snippets assume:

fac := tupleconv.MakeStringToTTConvFactory()

Where: upTarantool and the examples using it (example_test.go:193, example_test.go:229).

ExampleMap_insertMappedTuples and Example_ttEncoder start Tarantool and fail when it isn't installed:

--- FAIL: ExampleMap_insertMappedTuples (0.00s)
got:
exec: "tarantool": executable file not found in $PATH

Also, ExampleMap_insertMappedTuples refers to a non-existent identifier Map, so godoc can't attach it to anything.

Suggested fix: move the Tarantool-backed examples into Test functions that skip when exec.LookPath("tarantool") fails (or put them under a build tag), and rename the example, e.g. to ExampleMapper_insertMappedTuples.

主要言語
Go
スター
1
フォーク
0
平均マージ
1時間 43分
マージ済み PR(30日)
2

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

tarantool/go-tupleconv のほかの issue

tarantool/go-tupleconv の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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