MCPcopy
hub / github.com/yorukot/superfile / TeaUpdate

Function TeaUpdate

src/internal/test_utils.go:84–87  ·  view source on GitHub ↗

-------------------- Bubletea utilities TODO : Should we validate that returned value is of type *model ? and equal to m ? We are assuming that to be true as of now

(m *model, msg tea.Msg)

Source from the content-addressed store, hash-verified

82// TODO : Should we validate that returned value is of type *model ?
83// and equal to m ? We are assuming that to be true as of now
84func TeaUpdate(m *model, msg tea.Msg) tea.Cmd {
85 _, cmd := m.Update(msg)
86 return cmd
87}
88
89// Is the command tea.quit, or a batch that contains tea.quit
90func IsTeaQuit(cmd tea.Cmd) bool {

Callers 15

TestFileCreationFunction · 0.85
testPanelOperationsFunction · 0.85
setModelParamsForTestFunction · 0.85
navigateToTargetDirFunction · 0.85
testWithConfigFunction · 0.85
testModelScrollingFunction · 0.85

Calls 1

UpdateMethod · 0.80

Tested by 15

TestFileCreationFunction · 0.68
testPanelOperationsFunction · 0.68
testWithConfigFunction · 0.68
testModelScrollingFunction · 0.68
testModelScrollingCoreFunction · 0.68
TestQuitFunction · 0.68