Documentation
¶
Index ¶
- Constants
- Variables
- func ClearTestDir(dir string)
- func CompareJsonValue(t *testing.T, filePath, key string, expectedValue interface{})
- func CompareTomlValue(t *testing.T, filePath, key string, expectedValue interface{})
- func GetJsonValue(filePath, key string) (interface{}, error)
- func GetTomlValue(filePath, key string) (interface{}, error)
- func RunProgramWithSteps(t *testing.T, program tea.Model, steps Steps) tea.Model
- func SetupGasStation(t *testing.T) tea.Model
- type InputStep
- type Step
- type Steps
- type WaitStep
Constants ¶
View Source
const ( DefaultMaxWaitRetry = 300 DefaultPostWaitPeriod = 5 * time.Second GasStationMnemonic = "imitate sick vibrant bonus weather spice pave announce direct impulse strategy math" )
Variables ¶
View Source
var ( PressEnter = InputStep{Msg: tea.KeyMsg{Type: tea.KeyEnter}} PressSpace = InputStep{Msg: tea.KeyMsg{Type: tea.KeySpace}} PressTab = InputStep{Msg: tea.KeyMsg{Type: tea.KeyTab}} PressUp = InputStep{Msg: tea.KeyMsg{Type: tea.KeyUp}} PressDown = InputStep{Msg: tea.KeyMsg{Type: tea.KeyDown}} WaitFetching = WaitStep{Check: func() bool { time.Sleep(5 * time.Second) return true }} )
Functions ¶
func ClearTestDir ¶
func ClearTestDir(dir string)
func CompareJsonValue ¶
func CompareTomlValue ¶
func GetJsonValue ¶
func GetTomlValue ¶
func RunProgramWithSteps ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.