package
1.12.0
Repository: https://github.com/sacloud/iaas-api-go.git
Documentation: pkg.go.dev

# Functions

AssertEmpty emptyチェック.
AssertEmptyFunc emptyチェック.
AssertEqual 値の比較.
AssertEqualFunc 値の比較.
AssertEqualWithExpected 項目ごとに除外設定のできる期待値との比較.
AssertFalse falseチェック.
AssertFalseFunc falseチェック.
AssertLen lengthのチェック.
AssertLenFunc lengthのチェック.
AssertNil nilチェック.
AssertNilFunc nilチェック.
AssertNotEmpty not emptyチェック.
AssertNotEmptyFunc not emptyチェック.
AssertNotNil not nilチェック.
AssertNotNilFunc not nilチェック.
AssertTrue trueチェック.
AssertTrueFunc trueチェック.
No description provided by the author
CleanupTestResources 指定プレフィックスを持つリソースの削除を行う TESTACC環境変数が設定されている場合のみ実施される.
No description provided by the author
No description provided by the author
DoAsserts アサーションを複数適用、最初のエラーを返す.
IsAccTest TESTACC環境変数が指定されているか.
IsEnableAPITrace SAKURACLOUD_TRACE_API環境変数が指定されているか.
IsEnableHTTPTrace SAKURACLOUD_TRACE_HTTP環境変数が指定されているか.
IsEnableTrace SAKURACLOUD_TRACE環境変数が指定されているか.
PreCheckEnvsFunc 指定の環境変数が指定されていなかった場合にテストをスキップするためのFuncを返す.
RandomPrefix テスト時に作成するリソースに付与するランダムなプレフィックスを生成する.
ResourceName テスト時に作成するリソースの名称.
RunCRUD 任意の条件でCRUD操作をテストする.
No description provided by the author
SingletonAPICaller 環境変数からシングルトンAPICallerを作成する.
TestZone SAKURACLOUD_ZONE環境変数からテスト対象のゾーンを取得 デフォルトはtk1v.
WithRandomPrefix ランダムなプレフィックスをつけて返す.

# Constants

TestResourcePrefix テスト時に作成するリソースの名称に付与するプレフィックス このプレフィックスを持つリソースは受入テスト実行後に削除される.

# Variables

CleanupTargets クリーンアップ対象のリソース。CleanupResourceに渡す.

# Structs

No description provided by the author
CRUDTestCase CRUD操作テストケース.
CRUDTestContext CRUD操作テストでのコンテキスト、一連のテスト中に共有される.
CRUDTestDeleteFunc CRUD操作テストのDeleteテスト用Func.
CRUDTestExpect CRUD操作(DELETE以外)テストでの期待値.
CRUDTestFunc CRUD操作(DELETE以外)テストでのテスト用Func.
No description provided by the author

# Interfaces

TestT テストのライフサイクルを管理するためのインターフェース.

# Type aliases

No description provided by the author