Documentation
¶
Index ¶
- func AssertFileContent(t *testing.T, path string, expected string)
- func AssertFileExists(t *testing.T, path string)
- func AssertFileNotExists(t *testing.T, path string)
- func CreateTempFile(t *testing.T, dir, name, content string) string
- func MockConfirm(result bool) func(string) bool
- func ReadFile(t *testing.T, path string) (string, error)
- func SetupTempHome(t *testing.T) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertFileContent ¶
AssertFileContent はファイル内容が期待通りであることを確認
func AssertFileExists ¶
AssertFileExists はファイルが存在することを確認
func AssertFileNotExists ¶
AssertFileNotExists はファイルが存在しないことを確認
func CreateTempFile ¶
CreateTempFile は一時ファイルを作成するヘルパー
func MockConfirm ¶
MockConfirm はconfirm()関数をモックするヘルパー
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.